Class: ActiveInTime::TimetableProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/ait_connect/timetable_proxy.rb

Instance Method Summary collapse

Constructor Details

#initialize(active_in_time) ⇒ TimetableProxy

Returns a new instance of TimetableProxy.



3
4
5
# File 'lib/ait_connect/timetable_proxy.rb', line 3

def initialize(active_in_time)
  @active_in_time = active_in_time
end

Instance Method Details

#find(id) ⇒ Object



7
8
9
# File 'lib/ait_connect/timetable_proxy.rb', line 7

def find(id)
  ActiveInTime::Timetable.new(@active_in_time, @active_in_time.get("timetables/#{id}"))
end