Class: Wowr::Classes::WorldCalendar
- Inherits:
-
CommonCalendar
- Object
- CommonCalendar
- Wowr::Classes::WorldCalendar
- Defined in:
- lib/wowr/calendar.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#end ⇒ Object
readonly
Returns the value of attribute end.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
Attributes inherited from CommonCalendar
#calendar_type, #icon, #start, #summary
Instance Method Summary collapse
-
#initialize(json, api = nil) ⇒ WorldCalendar
constructor
A new instance of WorldCalendar.
Constructor Details
#initialize(json, api = nil) ⇒ WorldCalendar
Returns a new instance of WorldCalendar.
20 21 22 23 24 25 |
# File 'lib/wowr/calendar.rb', line 20 def initialize(json, api = nil) super(json, api) @end = Time.at((json["end"] / 1000).floor) @description = json["description"] @priority = json["priority"] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
18 19 20 |
# File 'lib/wowr/calendar.rb', line 18 def description @description end |
#end ⇒ Object (readonly)
Returns the value of attribute end.
18 19 20 |
# File 'lib/wowr/calendar.rb', line 18 def end @end end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
18 19 20 |
# File 'lib/wowr/calendar.rb', line 18 def priority @priority end |