Class: SocialStream::Population::Timestamps

Inherits:
Object
  • Object
show all
Defined in:
lib/social_stream/population/timestamps.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTimestamps

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

#createdObject (readonly)

Returns the value of attribute created.



4
5
6
# File 'lib/social_stream/population/timestamps.rb', line 4

def created
  @created
end

#updatedObject (readonly)

Returns the value of attribute updated.



4
5
6
# File 'lib/social_stream/population/timestamps.rb', line 4

def updated
  @updated
end