Class: Tiltify::Schedule
- Defined in:
- lib/tiltify/objects/schedule.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Schedule
constructor
A new instance of Schedule.
Methods inherited from Object
Constructor Details
#initialize(options = {}) ⇒ Schedule
Returns a new instance of Schedule.
4 5 6 7 8 9 |
# File 'lib/tiltify/objects/schedule.rb', line 4 def initialize( = {}) super self.starts_at = Time.at(["startsAt"].to_s[0..-4].to_i) if ["startsAt"] self.ends_at = Time.at(["endsAt"].to_s[0..-4].to_i) if ["endsAt"] end |