Class: Sensr::Clip
- Inherits:
-
SensrObject
- Object
- SensrObject
- Sensr::Clip
- Defined in:
- lib/sensr/clip.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, hash) ⇒ Clip
constructor
A new instance of Clip.
Methods inherited from SensrObject
#attributes, #attributes=, #id, #method_missing
Constructor Details
#initialize(id, hash) ⇒ Clip
Returns a new instance of Clip.
4 5 6 |
# File 'lib/sensr/clip.rb', line 4 def initialize(id, hash) super(hash) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sensr::SensrObject
Class Method Details
.public ⇒ Object
8 9 10 11 |
# File 'lib/sensr/clip.rb', line 8 def self.public response = Sensr.request(:get, Sensr.api_base_url + '/clips/public.json', nil) Clip.new(response) end |