class Fountain::Slot
Attributes
raw_data[R]
Raw slot data
Public Class Methods
new(data)
click to toggle source
@param [Hash] data Raw slot data
# File lib/fountain/slot.rb, line 14 def initialize(data) @raw_data = Util.stringify_hash_keys data end
Public Instance Methods
end_time()
click to toggle source
End time
# File lib/fountain/slot.rb, line 29 def end_time Time.parse raw_data['end_time'] end
id()
click to toggle source
Slot
ID
# File lib/fountain/slot.rb, line 19 def id raw_data['id'] end
inspect()
click to toggle source
# File lib/fountain/slot.rb, line 53 def inspect format( '#<%<class_name>s:0x%<object_id>p @id="%<id>s">', class_name: self.class.name, object_id: object_id, id: id ) end
instructions()
click to toggle source
Instructions
# File lib/fountain/slot.rb, line 44 def instructions raw_data['instructions'] end
location()
click to toggle source
# File lib/fountain/slot.rb, line 34 def location raw_data['location'] end
recruiter()
click to toggle source
Recruiter
# File lib/fountain/slot.rb, line 39 def recruiter raw_data['recruiter'] end
showed_up?()
click to toggle source
Showed up
# File lib/fountain/slot.rb, line 49 def showed_up? raw_data['showed_up'].to_s == 'true' end
start_time()
click to toggle source
Start time
# File lib/fountain/slot.rb, line 24 def start_time Time.parse raw_data['start_time'] end