Class: ActiveInTime::TimetableEntryProxy
- Inherits:
-
Object
- Object
- ActiveInTime::TimetableEntryProxy
- Defined in:
- lib/ait_connect/timetable_entry_proxy.rb
Instance Method Summary collapse
- #find(id, options = {}) ⇒ Object
-
#initialize(active_in_time) ⇒ TimetableEntryProxy
constructor
A new instance of TimetableEntryProxy.
Constructor Details
#initialize(active_in_time) ⇒ TimetableEntryProxy
Returns a new instance of TimetableEntryProxy.
3 4 5 |
# File 'lib/ait_connect/timetable_entry_proxy.rb', line 3 def initialize(active_in_time) @active_in_time = active_in_time end |
Instance Method Details
#find(id, options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/ait_connect/timetable_entry_proxy.rb', line 7 def find(id, = {}) entries = [] @active_in_time.get("timetables/#{id}/timetable_entries", ).each { |te| entries << ActiveInTime::TimetableEntry.new(@active_in_time,te) } entries end |