Class: Panda::Video

Inherits:
Resource show all
Includes:
ShortStatus
Defined in:
lib/panda/resources/video.rb

Constant Summary

Constants included from Router

Router::DEFAULT_FORMAT, Router::VAR_PATTERN

Instance Attribute Summary

Attributes inherited from Base

#attributes, #errors

Class Method Summary collapse

Methods included from ShortStatus

#fail?, #processing?, #success?

Methods inherited from Resource

#cloud, cloud, #create, #create!, #initialize, method_missing, #reload

Methods included from CloudConnection

#connection

Methods included from Finders::FindMany

#all, #find_by

Methods included from Associations

included

Methods included from Builders

included

Methods inherited from Base

#changed?, #delete, end_class_name, id, #id, #id=, #initialize, #new?, #reload, #to_json

Methods included from Router

included, #object_url_map

Constructor Details

This class inherits a constructor from Panda::Resource

Dynamic Method Handling

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

Class Method Details

.firstObject



7
8
9
# File 'lib/panda/resources/video.rb', line 7

def first
  VideoScope.new(self).per_page(1).first
end