class SocialStream::Population::Timestamps

Constants

SCOPE

Attributes

created[R]
updated[R]

Public Class Methods

new() click to toggle source
# File lib/social_stream/population/timestamps.rb, line 8
def initialize
  created = rand(SCOPE)
  update = [ true, false ].sample
  updated = update ? rand(created) : created

  @created = Time.at(Time.now.to_i - created)
  @updated = Time.at(Time.now.to_i - updated)
end