Class: Nicoalert::Community

Inherits:
Object
  • Object
show all
Defined in:
lib/nicoalert/community.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/nicoalert/community.rb', line 7

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/nicoalert/community.rb', line 7

def name
  @name
end

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



7
8
9
# File 'lib/nicoalert/community.rb', line 7

def thumbnail
  @thumbnail
end