Class: Song
Instance Attribute Summary collapse
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, rank) ⇒ Song
constructor
A new instance of Song.
Methods included from Rankable
#<=>, #hit?, #normalized_rank, #status, #thumbs_down, #thumbs_up
Constructor Details
#initialize(title, rank) ⇒ Song
Returns a new instance of Song.
21 22 23 24 |
# File 'lib/mochee/mixins.rb', line 21 def initialize(title,rank) self.title = title self.rank = rank end |
Instance Attribute Details
#rank ⇒ Object
Returns the value of attribute rank.
19 20 21 |
# File 'lib/mochee/mixins.rb', line 19 def rank @rank end |
#title ⇒ Object
Returns the value of attribute title.
19 20 21 |
# File 'lib/mochee/mixins.rb', line 19 def title @title end |