Class: ActiveInTime::Level
- Inherits:
-
Object
- Object
- ActiveInTime::Level
- Defined in:
- lib/ait_connect/level.rb
Instance Attribute Summary collapse
-
#json ⇒ Object
readonly
Returns the value of attribute json.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(active_in_time, json) ⇒ Level
constructor
A new instance of Level.
- #name ⇒ Object
Constructor Details
#initialize(active_in_time, json) ⇒ Level
Returns a new instance of Level.
5 6 7 |
# File 'lib/ait_connect/level.rb', line 5 def initialize(active_in_time, json) @active_in_time, @json = active_in_time, json end |
Instance Attribute Details
#json ⇒ Object (readonly)
Returns the value of attribute json.
3 4 5 |
# File 'lib/ait_connect/level.rb', line 3 def json @json end |
Instance Method Details
#id ⇒ Object
9 10 11 |
# File 'lib/ait_connect/level.rb', line 9 def id @json["id"] end |
#name ⇒ Object
13 14 15 |
# File 'lib/ait_connect/level.rb', line 13 def name @json["name"] end |