Class: ActiveInTime::TimetableEntryProxy

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

Instance Method Summary collapse

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, options = {})
  
  entries = []
  @active_in_time.get("timetables/#{id}/timetable_entries", options).each {  |te|
      entries << ActiveInTime::TimetableEntry.new(@active_in_time,te)
  }
  entries
  
end