Class: Movie
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) ⇒ Movie
constructor
A new instance of Movie.
Methods included from Rankable
#<=>, #hit?, #normalized_rank, #status, #thumbs_down, #thumbs_up
Constructor Details
#initialize(title, rank) ⇒ Movie
Returns a new instance of Movie.
10 11 12 13 14 |
# File 'lib/mixins.rb', line 10 def initialize(title,rank) @title = title @rank = rank end |
Instance Attribute Details
#rank ⇒ Object
Returns the value of attribute rank.
9 10 11 |
# File 'lib/mixins.rb', line 9 def rank @rank end |
#title ⇒ Object
Returns the value of attribute title.
9 10 11 |
# File 'lib/mixins.rb', line 9 def title @title end |