Class: Brainzz::Channel
- Defined in:
- lib/brainzz/models/channel.rb
Instance Attribute Summary collapse
-
#comment_count ⇒ Object
Returns the value of attribute comment_count.
-
#description ⇒ Object
Returns the value of attribute description.
-
#google_plus_id ⇒ Object
Returns the value of attribute google_plus_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#likes_playlist ⇒ Object
Returns the value of attribute likes_playlist.
-
#published_at ⇒ Object
Returns the value of attribute published_at.
-
#subscriber_count ⇒ Object
Returns the value of attribute subscriber_count.
-
#title ⇒ Object
Returns the value of attribute title.
-
#uploads_playlist ⇒ Object
Returns the value of attribute uploads_playlist.
-
#video_count ⇒ Object
Returns the value of attribute video_count.
-
#view_count ⇒ Object
Returns the value of attribute view_count.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Channel
constructor
A new instance of Channel.
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_count ⇒ Object
Returns the value of attribute comment_count.
3 4 5 |
# File 'lib/brainzz/models/channel.rb', line 3 def comment_count @comment_count end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/brainzz/models/channel.rb', line 3 def description @description end |
#google_plus_id ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/brainzz/models/channel.rb', line 3 def id @id end |
#likes_playlist ⇒ Object
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_at ⇒ Object
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_count ⇒ Object
Returns the value of attribute subscriber_count.
3 4 5 |
# File 'lib/brainzz/models/channel.rb', line 3 def subscriber_count @subscriber_count end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/brainzz/models/channel.rb', line 3 def title @title end |
#uploads_playlist ⇒ Object
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_count ⇒ Object
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_count ⇒ Object
Returns the value of attribute view_count.
3 4 5 |
# File 'lib/brainzz/models/channel.rb', line 3 def view_count @view_count end |