Class: Flicks::Movie3D

Inherits:
Movie
  • Object
show all
Defined in:
lib/movie3d.rb

Instance Attribute Summary collapse

Attributes inherited from Movie

#rank, #snack_carbs, #title

Instance Method Summary collapse

Methods inherited from Movie

#ate_snack, #carbs_consumed, convert, #expose_hash, #to_s

Methods included from Rankable

#<=>, #hit?, #normalized_rank, #status, #thumbs_down

Constructor Details

#initialize(title, rank, wow_factor) ⇒ Movie3D

Returns a new instance of Movie3D.



7
8
9
10
11
# File 'lib/movie3d.rb', line 7

def initialize(title,rank,wow_factor)
	super(title,rank)

	@wow_factor = wow_factor
end

Instance Attribute Details

#wow_factorObject

Returns the value of attribute wow_factor.



5
6
7
# File 'lib/movie3d.rb', line 5

def wow_factor
  @wow_factor
end

Instance Method Details

#show_effectObject



17
18
19
# File 'lib/movie3d.rb', line 17

def show_effect
	puts "Wow " * self.wow_factor 
end

#thumbs_upObject



13
14
15
# File 'lib/movie3d.rb', line 13

def thumbs_up
	self.wow_factor.times { super }
end