Class: Pressy::Action::Push

Inherits:
Object
  • Object
show all
Defined in:
lib/pressy/action/push.rb

Instance Method Summary collapse

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

#changesetObject



13
14
15
# File 'lib/pressy/action/push.rb', line 13

def changeset
  @changeset ||= build_changeset
end

#has_changes?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/pressy/action/push.rb', line 9

def has_changes?
  changeset.has_changes?
end