Class: Wowr::Classes::UserCommonCalendar

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

Direct Known Subclasses

UserCalendar, UserDetailCalendar

Instance Attribute Summary collapse

Attributes inherited from CommonCalendar

#calendar_type, #icon, #start, #summary

Instance Method Summary collapse

Constructor Details

#initialize(json, api = nil) ⇒ UserCommonCalendar

Returns a new instance of UserCommonCalendar.



31
32
33
34
35
36
37
# File 'lib/wowr/calendar.rb', line 31

def initialize(json, api = nil)
	super(json, api)
	@type             = json["type"]
	@owner            = json["owner"]
	@moderator        = json["moderator"] if json["moderator"]
	@id               = json["id"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



29
30
31
# File 'lib/wowr/calendar.rb', line 29

def id
  @id
end

#moderatorObject (readonly)

Returns the value of attribute moderator.



29
30
31
# File 'lib/wowr/calendar.rb', line 29

def moderator
  @moderator
end

#ownerObject (readonly)

Returns the value of attribute owner.



29
30
31
# File 'lib/wowr/calendar.rb', line 29

def owner
  @owner
end

#typeObject (readonly)

Returns the value of attribute type.



29
30
31
# File 'lib/wowr/calendar.rb', line 29

def type
  @type
end