Class: ActiveInTime::TimetableProxy
- Inherits:
-
Object
- Object
- ActiveInTime::TimetableProxy
- Defined in:
- lib/ait_connect/timetable_proxy.rb
Instance Method Summary collapse
- #find(id) ⇒ Object
-
#initialize(active_in_time) ⇒ TimetableProxy
constructor
A new instance of TimetableProxy.
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 |