Class: Brainzz::VideoStat
- Defined in:
- lib/brainzz/models/video_stat.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#day ⇒ Object
Returns the value of attribute day.
Instance Method Summary collapse
-
#initialize(hash) ⇒ VideoStat
constructor
A new instance of VideoStat.
Constructor Details
#initialize(hash) ⇒ VideoStat
5 6 7 8 9 |
# File 'lib/brainzz/models/video_stat.rb', line 5 def initialize(hash) @hash = hash @day = transform_date(day_data) end |
Instance Attribute Details
#day ⇒ Object
Returns the value of attribute day.
3 4 5 |
# File 'lib/brainzz/models/video_stat.rb', line 3 def day @day end |