Class: Brainzz::Channel

Inherits:
BaseModel show all
Defined in:
lib/brainzz/models/channel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Channel

Returns a new instance of Channel.



16
17
18
19
20
21
22
23
24
# File 'lib/brainzz/models/channel.rb', line 16

def initialize(hash = {})
  @hash = hash || {}

  @id = transform(hash_id)

  initialize_snippet
  initialize_content_details
  initialize_statistics
end

Instance Attribute Details

#comment_countObject

Returns the value of attribute comment_count.



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

def comment_count
  @comment_count
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#google_plus_idObject

Returns the value of attribute google_plus_id.



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

def google_plus_id
  @google_plus_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#likes_playlistObject

Returns the value of attribute likes_playlist.



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

def likes_playlist
  @likes_playlist
end

#published_atObject

Returns the value of attribute published_at.



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

def published_at
  @published_at
end

#subscriber_countObject

Returns the value of attribute subscriber_count.



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

def subscriber_count
  @subscriber_count
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#uploads_playlistObject

Returns the value of attribute uploads_playlist.



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

def uploads_playlist
  @uploads_playlist
end

#video_countObject

Returns the value of attribute video_count.



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

def video_count
  @video_count
end

#view_countObject

Returns the value of attribute view_count.



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

def view_count
  @view_count
end