Class: Syobocal::Comment::MusicData

Inherits:
Object
  • Object
show all
Defined in:
lib/syobocal/comment/music_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attrObject (readonly)

Returns the value of attribute attr.



4
5
6
# File 'lib/syobocal/comment/music_data.rb', line 4

def attr
  @attr
end

#attr_noteObject (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_textObject (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

#peopleObject (readonly)

Returns the value of attribute people.



4
5
6
# File 'lib/syobocal/comment/music_data.rb', line 4

def people
  @people
end

#valueObject (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