Class: Brainzz::ViewPercentage
- Defined in:
- lib/brainzz/models/view_percentage.rb
Instance Attribute Summary collapse
-
#percentage ⇒ Object
Returns the value of attribute percentage.
Attributes inherited from VideoStat
Attributes inherited from Stat
Instance Method Summary collapse
-
#initialize(hash) ⇒ ViewPercentage
constructor
A new instance of ViewPercentage.
Constructor Details
#initialize(hash) ⇒ ViewPercentage
Returns a new instance of ViewPercentage.
5 6 7 8 9 |
# File 'lib/brainzz/models/view_percentage.rb', line 5 def initialize(hash) super @percentage = normalize_stat(percentage_data) end |
Instance Attribute Details
#percentage ⇒ Object
Returns the value of attribute percentage.
3 4 5 |
# File 'lib/brainzz/models/view_percentage.rb', line 3 def percentage @percentage end |