Class: ActiveInTime::TimetableSessionCategory

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(active_in_time, json) ⇒ TimetableSessionCategory

Returns a new instance of TimetableSessionCategory.



5
6
7
# File 'lib/ait_connect/timetable_session_category.rb', line 5

def initialize(active_in_time, json)
  @active_in_time, @json = active_in_time, json
end

Instance Attribute Details

#jsonObject (readonly)

Returns the value of attribute json.



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

def json
  @json
end

Instance Method Details

#idObject



9
10
11
# File 'lib/ait_connect/timetable_session_category.rb', line 9

def id
  @json["id"]
end

#nameObject



13
14
15
# File 'lib/ait_connect/timetable_session_category.rb', line 13

def name
  @json["name"]
end