Sha256: 31446028161d136be927669db805db648b0bf3feb99b51752df98a915924830e
Contents?: true
Size: 424 Bytes
Versions: 5
Compression:
Stored size: 424 Bytes
Contents
require 'time' module Capgun module Creatable # Time when the object was created # # @return [Time] def created_at @created_at ||= Time.parse(@attrs['created_at']) unless @attrs['created_at'].nil? end # Time when the object was updated # # @return [Time] def updated_at @updated_at ||= Time.parse(@attrs['updated_at']) unless @attrs['updated_at'].nil? end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
capgun-0.2.0 | lib/capgun/creatable.rb |
capgun-0.1.2 | lib/capgun/creatable.rb |
capgun-0.1.1 | lib/capgun/creatable.rb |
capgun-0.1.0 | lib/capgun/creatable.rb |
capgun-0.0.3 | lib/capgun/creatable.rb |