Class: Song

Inherits:
Object
  • Object
show all
Includes:
Rankable
Defined in:
lib/mochee/mixins.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rankObject

Returns the value of attribute rank.



19
20
21
# File 'lib/mochee/mixins.rb', line 19

def rank
  @rank
end

#titleObject

Returns the value of attribute title.



19
20
21
# File 'lib/mochee/mixins.rb', line 19

def title
  @title
end