Class: Brainzz::ChannelListParams
- Inherits:
-
Object
- Object
- Brainzz::ChannelListParams
- Defined in:
- lib/brainzz/params/channel_list_params.rb
Instance Attribute Summary collapse
-
#content_owner_id ⇒ Object
readonly
Returns the value of attribute content_owner_id.
-
#managed_by_me ⇒ Object
readonly
Returns the value of attribute managed_by_me.
-
#mine ⇒ Object
readonly
Returns the value of attribute mine.
-
#next_page_token ⇒ Object
readonly
Returns the value of attribute next_page_token.
-
#parts ⇒ Object
readonly
Returns the value of attribute parts.
Instance Method Summary collapse
-
#initialize(options = {}, content_owner_id = nil) ⇒ ChannelListParams
constructor
A new instance of ChannelListParams.
- #valid? ⇒ Boolean
Constructor Details
#initialize(options = {}, content_owner_id = nil) ⇒ ChannelListParams
Returns a new instance of ChannelListParams.
9 10 11 12 13 14 15 |
# File 'lib/brainzz/params/channel_list_params.rb', line 9 def initialize(={}, content_owner_id=nil) @parts = .fetch(:parts, default_channel_parts) @content_owner_id = content_owner_id @managed_by_me = .fetch(:managed_by_me, false) @mine = .fetch(:mine, false) @next_page_token = .fetch(:next_page_token, nil) end |
Instance Attribute Details
#content_owner_id ⇒ Object (readonly)
Returns the value of attribute content_owner_id.
4 5 6 |
# File 'lib/brainzz/params/channel_list_params.rb', line 4 def content_owner_id @content_owner_id end |
#managed_by_me ⇒ Object (readonly)
Returns the value of attribute managed_by_me.
5 6 7 |
# File 'lib/brainzz/params/channel_list_params.rb', line 5 def managed_by_me @managed_by_me end |
#mine ⇒ Object (readonly)
Returns the value of attribute mine.
6 7 8 |
# File 'lib/brainzz/params/channel_list_params.rb', line 6 def mine @mine end |
#next_page_token ⇒ Object (readonly)
Returns the value of attribute next_page_token.
7 8 9 |
# File 'lib/brainzz/params/channel_list_params.rb', line 7 def next_page_token @next_page_token end |
#parts ⇒ Object (readonly)
Returns the value of attribute parts.
3 4 5 |
# File 'lib/brainzz/params/channel_list_params.rb', line 3 def parts @parts end |
Instance Method Details
#valid? ⇒ Boolean
17 18 19 |
# File 'lib/brainzz/params/channel_list_params.rb', line 17 def valid? !!(@parts && !@parts.empty?) end |