Method: Localeapp::SyncFile#write

Defined in:
lib/localeapp/sync_file.rb

#write(polled_at, updated_at) ⇒ Object



13
14
15
16
17
# File 'lib/localeapp/sync_file.rb', line 13

def write(polled_at, updated_at)
  data.polled_at  = polled_at
  data.updated_at = updated_at
  File.open(path, 'w+') { |f| f.write(data.to_yaml) }
end