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