Sha256: cd2c4cb7331a116ccef558eb90132b8c9b99571ebb9cfbe4f6e604aa22134fe0
Contents?: true
Size: 374 Bytes
Versions: 7
Compression:
Stored size: 374 Bytes
Contents
module Intercom # Our api returns date as unix time stamps. This module helps marshall to and from {Time} objects. 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
7 entries across 7 versions & 1 rubygems