Class: Brainzz::CommentCount

Inherits:
VideoStat show all
Defined in:
lib/brainzz/models/comment_count.rb

Instance Attribute Summary collapse

Attributes inherited from VideoStat

#video_id

Attributes inherited from Stat

#day

Instance Method Summary collapse

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

#commentsObject

Returns the value of attribute comments.



3
4
5
# File 'lib/brainzz/models/comment_count.rb', line 3

def comments
  @comments
end