Class: SocialStream::Population::Timestamps
- Inherits:
-
Object
- Object
- SocialStream::Population::Timestamps
- Defined in:
- lib/social_stream/population/timestamps.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#updated ⇒ Object
readonly
Returns the value of attribute updated.
Instance Method Summary collapse
-
#initialize ⇒ Timestamps
constructor
A new instance of Timestamps.
Constructor Details
#initialize ⇒ Timestamps
Returns a new instance of Timestamps.
6 7 8 9 |
# File 'lib/social_stream/population/timestamps.rb', line 6 def initialize @updated = Time.at(rand(Time.now.to_i)) @created = Time.at(rand(@updated.to_i)) end |
Instance Attribute Details
#created ⇒ Object (readonly)
Returns the value of attribute created.
4 5 6 |
# File 'lib/social_stream/population/timestamps.rb', line 4 def created @created end |
#updated ⇒ Object (readonly)
Returns the value of attribute updated.
4 5 6 |
# File 'lib/social_stream/population/timestamps.rb', line 4 def updated @updated end |