Module: NdSync::Local::ClassMethods

Defined in:
lib/nd_sync/local.rb

Instance Method Summary collapse

Instance Method Details

#receive(collection) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/nd_sync/local.rb', line 41

def receive(collection)
  collection.each do |remote|
    local = transcribe(remote)
    local.save
    remote.transmitted_to(local)
  end
end

#to_transmitObject



37
38
39
# File 'lib/nd_sync/local.rb', line 37

def to_transmit
  pending.to_a
end