Class: Vidsy::Data::API::Video

Inherits:
Object
  • Object
show all
Defined in:
lib/vidsy/data/api/video.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create(options) ⇒ Object



8
9
10
# File 'lib/vidsy/data/api/video.rb', line 8

def self.create(options)
  new.create options
end

Instance Method Details

#create(options) ⇒ Object



12
13
14
# File 'lib/vidsy/data/api/video.rb', line 12

def create(options)
  client.post(routes.video, options).first
end