Class: Wowr::Classes::UserCommonCalendar
- Inherits:
-
CommonCalendar
- Object
- CommonCalendar
- Wowr::Classes::UserCommonCalendar
- Defined in:
- lib/wowr/calendar.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#moderator ⇒ Object
readonly
Returns the value of attribute moderator.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from CommonCalendar
#calendar_type, #icon, #start, #summary
Instance Method Summary collapse
-
#initialize(json, api = nil) ⇒ UserCommonCalendar
constructor
A new instance of UserCommonCalendar.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
29 30 31 |
# File 'lib/wowr/calendar.rb', line 29 def id @id end |
#moderator ⇒ Object (readonly)
Returns the value of attribute moderator.
29 30 31 |
# File 'lib/wowr/calendar.rb', line 29 def moderator @moderator end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
29 30 31 |
# File 'lib/wowr/calendar.rb', line 29 def owner @owner end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
29 30 31 |
# File 'lib/wowr/calendar.rb', line 29 def type @type end |