Class: Brainzz::VideoSearchParams
- Inherits:
-
Object
- Object
- Brainzz::VideoSearchParams
- Defined in:
- lib/brainzz/params/video_search_params.rb
Instance Attribute Summary collapse
-
#content_owner_id ⇒ Object
readonly
Returns the value of attribute content_owner_id.
-
#for_content_owner ⇒ Object
readonly
Returns the value of attribute for_content_owner.
-
#next_page_token ⇒ Object
readonly
Returns the value of attribute next_page_token.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
Instance Method Summary collapse
-
#initialize(options = {}, content_owner_id = nil) ⇒ VideoSearchParams
constructor
A new instance of VideoSearchParams.
- #valid? ⇒ Boolean
Constructor Details
#initialize(options = {}, content_owner_id = nil) ⇒ VideoSearchParams
Returns a new instance of VideoSearchParams.
5 6 7 8 9 10 |
# File 'lib/brainzz/params/video_search_params.rb', line 5 def initialize(={}, content_owner_id=nil) @for_content_owner = .fetch(:for_content_owner, nil) @order = .fetch(:order, nil) @content_owner_id = content_owner_id @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.
3 4 5 |
# File 'lib/brainzz/params/video_search_params.rb', line 3 def content_owner_id @content_owner_id end |
#for_content_owner ⇒ Object (readonly)
Returns the value of attribute for_content_owner.
3 4 5 |
# File 'lib/brainzz/params/video_search_params.rb', line 3 def for_content_owner @for_content_owner end |
#next_page_token ⇒ Object (readonly)
Returns the value of attribute next_page_token.
3 4 5 |
# File 'lib/brainzz/params/video_search_params.rb', line 3 def next_page_token @next_page_token end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
3 4 5 |
# File 'lib/brainzz/params/video_search_params.rb', line 3 def order @order end |
Instance Method Details
#valid? ⇒ Boolean
12 13 14 |
# File 'lib/brainzz/params/video_search_params.rb', line 12 def valid? true end |