Class: Acme::Smileage::Discography::HelloProjectMusicAward

Inherits:
Object
  • Object
show all
Defined in:
lib/acme/smileage/discography/hello_project_music_award.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

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

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

#yearObject (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_aObject



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