Class: Movie

Inherits:
Object
  • Object
show all
Includes:
Rankable
Defined in:
lib/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) ⇒ 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

#rankObject

Returns the value of attribute rank.



9
10
11
# File 'lib/mixins.rb', line 9

def rank
  @rank
end

#titleObject

Returns the value of attribute title.



9
10
11
# File 'lib/mixins.rb', line 9

def title
  @title
end