class OysterDb::Date
Use this class to parse through the date on the timestamp
Attributes
day[R]
timestamp[R]
Public Class Methods
new(timestamp)
click to toggle source
This will initialize a new date with the given timestamp
# File lib/OysterDb.rb, line 71 def initialize(timestamp) day_and_time = timestamp.split('_') @day = day_and_time[0] @time = day_and_time[1] end
Public Instance Methods
to_s()
click to toggle source
Produces a string version of this object
# File lib/OysterDb.rb, line 78 def to_s return "#{@day} at #{@time}" end