Class: Panda::VideoScope
- Defined in:
- lib/panda/proxies/video_scope.rb
Instance Attribute Summary
Attributes inherited from Proxy
Instance Method Summary collapse
-
#initialize(parent) ⇒ VideoScope
constructor
A new instance of VideoScope.
- #non_delegate_methods ⇒ Object
- #page(this_page) ⇒ Object
- #per_page(this_per_page) ⇒ Object
- #status(this_status) ⇒ Object
Methods inherited from Scope
#all, #create, #create!, #find_by_path, #reload, #respond_to?
Methods inherited from Proxy
Methods included from CloudConnection
Methods included from Finders::FindOne
#find, #find_by_path, #find_object_by_path
Methods included from Finders::FindMany
Methods included from Builders::ClassMethods
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_methods ⇒ Object
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 |