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