Sha256: e6272f098b0f3c26ee6ad1a28196369dd68fe2564a943151be883cc7ba85b0f1
Contents?: true
Size: 395 Bytes
Versions: 4
Compression:
Stored size: 395 Bytes
Contents
require 'time' require 'memoizable' module Twitter module Creatable include Memoizable # Time when the object was created on Twitter # # @return [Time] def created_at Time.parse(@attrs[:created_at]) if @attrs[:created_at] end memoize :created_at # @return [Boolean] def created? !!@attrs[:created_at] end memoize :created? end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.1.1 | lib/twitter/creatable.rb |
twitter-5.1.0 | lib/twitter/creatable.rb |
twitter-5.0.1 | lib/twitter/creatable.rb |
twitter-5.0.0 | lib/twitter/creatable.rb |