Class: Pressy::Action::Push
- Inherits:
-
Object
- Object
- Pressy::Action::Push
- Defined in:
- lib/pressy/action/push.rb
Instance Method Summary collapse
- #changeset ⇒ Object
- #has_changes? ⇒ Boolean
-
#initialize(params) ⇒ Push
constructor
A new instance of Push.
Constructor Details
#initialize(params) ⇒ Push
Returns a new instance of Push
4 5 6 7 |
# File 'lib/pressy/action/push.rb', line 4 def initialize(params) @local_posts = params.fetch(:local) @server_posts = params.fetch(:server) end |
Instance Method Details
#changeset ⇒ Object
13 14 15 |
# File 'lib/pressy/action/push.rb', line 13 def changeset @changeset ||= build_changeset end |
#has_changes? ⇒ Boolean
9 10 11 |
# File 'lib/pressy/action/push.rb', line 9 def has_changes? changeset.has_changes? end |