Class: Sensr::Clip

Inherits:
SensrObject show all
Defined in:
lib/sensr/clip.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.publicObject



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