Class: Brainzz::VideoSearchParams

Inherits:
Object
  • Object
show all
Defined in:
lib/brainzz/params/video_search_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={}, content_owner_id=nil)
  @for_content_owner = options.fetch(:for_content_owner, nil)
  @order             = options.fetch(:order, nil)
  @content_owner_id  = content_owner_id
  @next_page_token   = options.fetch(:next_page_token, nil)
end

Instance Attribute Details

#content_owner_idObject (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_ownerObject (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_tokenObject (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

#orderObject (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

Returns:

  • (Boolean)


12
13
14
# File 'lib/brainzz/params/video_search_params.rb', line 12

def valid?
  true
end