Class: Syobocal::Comment::Music
- Inherits:
-
Object
- Object
- Syobocal::Comment::Music
- Defined in:
- lib/syobocal/comment/music.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#data_list ⇒ Object
readonly
Returns the value of attribute data_list.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(title, category, data_list) ⇒ Music
constructor
A new instance of Music.
Constructor Details
#initialize(title, category, data_list) ⇒ Music
Returns a new instance of Music.
6 7 8 |
# File 'lib/syobocal/comment/music.rb', line 6 def initialize(title, category, data_list) @title, @category, @data_list = title, category, data_list end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
4 5 6 |
# File 'lib/syobocal/comment/music.rb', line 4 def category @category end |
#data_list ⇒ Object (readonly)
Returns the value of attribute data_list.
4 5 6 |
# File 'lib/syobocal/comment/music.rb', line 4 def data_list @data_list end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/syobocal/comment/music.rb', line 4 def title @title end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/syobocal/comment/music.rb', line 10 def ==(other) other.instance_of?(self.class) && other.title == title && other.category == category && other.data_list == data_list end |