Class: Wowr::Classes::WorldCalendar

Inherits:
CommonCalendar show all
Defined in:
lib/wowr/calendar.rb

Instance Attribute Summary collapse

Attributes inherited from CommonCalendar

#calendar_type, #icon, #start, #summary

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



18
19
20
# File 'lib/wowr/calendar.rb', line 18

def description
  @description
end

#endObject (readonly)

Returns the value of attribute end.



18
19
20
# File 'lib/wowr/calendar.rb', line 18

def end
  @end
end

#priorityObject (readonly)

Returns the value of attribute priority.



18
19
20
# File 'lib/wowr/calendar.rb', line 18

def priority
  @priority
end