Class: Acme::Smileage::Discography::HelloProjectMusicAward
- Inherits:
-
Object
- Object
- Acme::Smileage::Discography::HelloProjectMusicAward
- Defined in:
- lib/acme/smileage/discography/hello_project_music_award.rb
Instance Attribute Summary collapse
-
#points ⇒ Object
readonly
Returns the value of attribute points.
-
#rank ⇒ Object
readonly
Returns the value of attribute rank.
-
#votes ⇒ Object
readonly
Returns the value of attribute votes.
-
#year ⇒ Object
readonly
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(year, rank, points, votes) ⇒ HelloProjectMusicAward
constructor
A new instance of HelloProjectMusicAward.
- #to_a ⇒ Object
Constructor Details
#initialize(year, rank, points, votes) ⇒ HelloProjectMusicAward
Returns a new instance of HelloProjectMusicAward.
9 10 11 12 13 14 |
# File 'lib/acme/smileage/discography/hello_project_music_award.rb', line 9 def initialize(year, rank, points, votes) @year = year @rank = rank @points = points @votes = votes end |
Instance Attribute Details
#points ⇒ Object (readonly)
Returns the value of attribute points.
7 8 9 |
# File 'lib/acme/smileage/discography/hello_project_music_award.rb', line 7 def points @points end |
#rank ⇒ Object (readonly)
Returns the value of attribute rank.
7 8 9 |
# File 'lib/acme/smileage/discography/hello_project_music_award.rb', line 7 def rank @rank end |
#votes ⇒ Object (readonly)
Returns the value of attribute votes.
7 8 9 |
# File 'lib/acme/smileage/discography/hello_project_music_award.rb', line 7 def votes @votes end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
7 8 9 |
# File 'lib/acme/smileage/discography/hello_project_music_award.rb', line 7 def year @year end |
Instance Method Details
#to_a ⇒ Object
16 17 18 |
# File 'lib/acme/smileage/discography/hello_project_music_award.rb', line 16 def to_a [self.year, self.rank, self.points, self.votes] end |