Class: Panda::VideoScope

Inherits:
Scope show all
Defined in:
lib/panda/proxies/video_scope.rb

Instance Attribute Summary

Attributes inherited from Proxy

#klass, #parent

Instance Method Summary collapse

Methods inherited from Scope

#all, #create, #create!, #find_by_path, #reload, #respond_to?

Methods inherited from Proxy

#cloud, #sti_name

Methods included from CloudConnection

#connection

Methods included from Finders::FindOne

#find, #find_by_path, #find_object_by_path

Methods included from Finders::FindMany

#all, #find_by

Methods included from Builders::ClassMethods

#create, #create!

Methods included from Router::ClassMethods

#build_hash_many_path, #create_rest_url, #many_path, #match, #one_path, #resource_path

Constructor Details

#initialize(parent) ⇒ VideoScope

Returns a new instance of VideoScope.



4
5
6
# File 'lib/panda/proxies/video_scope.rb', line 4

def initialize(parent)
  super(parent, Video)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Panda::Finders::FindMany

Instance Method Details

#non_delegate_methodsObject



8
9
10
# File 'lib/panda/proxies/video_scope.rb', line 8

def non_delegate_methods
  super + [:status, :page, :per_page]
end

#page(this_page) ⇒ Object



12
13
14
15
# File 'lib/panda/proxies/video_scope.rb', line 12

def page(this_page)
  @scoped_attributes[:page] = this_page
  self
end

#per_page(this_per_page) ⇒ Object



17
18
19
20
# File 'lib/panda/proxies/video_scope.rb', line 17

def per_page(this_per_page)
  @scoped_attributes[:per_page] = this_per_page
  self
end

#status(this_status) ⇒ Object



22
23
24
25
# File 'lib/panda/proxies/video_scope.rb', line 22

def status(this_status)
  @scoped_attributes[:status] = this_status
  self
end