Class: Flicks::Movie3D
Instance Attribute Summary collapse
-
#wow_factor ⇒ Object
Returns the value of attribute wow_factor.
Attributes inherited from Movie
Instance Method Summary collapse
-
#initialize(title, rank, wow_factor) ⇒ Movie3D
constructor
A new instance of Movie3D.
- #show_effect ⇒ Object
- #thumbs_up ⇒ Object
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_factor ⇒ Object
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_effect ⇒ Object
17 18 19 |
# File 'lib/movie3d.rb', line 17 def show_effect puts "Wow " * self.wow_factor end |
#thumbs_up ⇒ Object
13 14 15 |
# File 'lib/movie3d.rb', line 13 def thumbs_up self.wow_factor.times { super } end |