Class: Brainzz::ChannelCommentCount

Inherits:
ChannelStat show all
Defined in:
lib/brainzz/models/channel_comment_count.rb

Instance Attribute Summary collapse

Attributes inherited from ChannelStat

#channel_id

Attributes inherited from Stat

#day

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ChannelCommentCount

Returns a new instance of ChannelCommentCount.



5
6
7
8
# File 'lib/brainzz/models/channel_comment_count.rb', line 5

def initialize(hash)
  super
  @comments = normalize_stat(comments_data)
end

Instance Attribute Details

#commentsObject

Returns the value of attribute comments.



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

def comments
  @comments
end