Sha256: 186249458c8efa12e7717ecbc1be635a790c03273c932d82431d3681ebee5f8d
Contents?: true
Size: 273 Bytes
Versions: 2
Compression:
Stored size: 273 Bytes
Contents
module Intercom module UnixTimestampUnwrapper def time_at(attribute_name) Time.at(@attributes[attribute_name]) if @attributes[attribute_name] end def set_time_at(attribute_name, time) @attributes[attribute_name.to_s] = time.to_i end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
intercom-0.0.3 | lib/intercom/unix_timestamp_unwrapper.rb |
intercom-0.0.2 | lib/intercom/unix_timestamp_unwrapper.rb |