Class: Nicoalert::Community
- Inherits:
-
Object
- Object
- Nicoalert::Community
- Defined in:
- lib/nicoalert/community.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#thumbnail ⇒ Object
readonly
Returns the value of attribute thumbnail.
Instance Method Summary collapse
-
#initialize(id, name, thumbnail) ⇒ Community
constructor
A new instance of Community.
Constructor Details
#initialize(id, name, thumbnail) ⇒ Community
Returns a new instance of Community.
9 10 11 12 13 |
# File 'lib/nicoalert/community.rb', line 9 def initialize(id, name, thumbnail) @id = id @name = name @thumbnail = thumbnail end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/nicoalert/community.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/nicoalert/community.rb', line 7 def name @name end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
7 8 9 |
# File 'lib/nicoalert/community.rb', line 7 def thumbnail @thumbnail end |