Class: Everybit::Video

Inherits:
Resource show all
Includes:
Createable, Deleteable, Listable, Updateable
Defined in:
lib/everybit/video.rb

Instance Attribute Summary

Attributes inherited from EverybitObject

#code, #status

Class Method Summary collapse

Methods included from Updateable

included

Methods included from Createable

included

Methods included from Deleteable

included

Methods included from Listable

included

Methods inherited from Resource

class_name, retrieve, url

Methods inherited from EverybitObject

#[], #[]=, #initialize, #inspect, #to_json, #to_s

Constructor Details

This class inherits a constructor from Everybit::EverybitObject

Class Method Details

.details(uuid, params = {}) ⇒ Object

Raises:

  • (ArgumentError)


13
14
15
16
# File 'lib/everybit/video.rb', line 13

def self.details(uuid, params={})
  raise ArgumentError, 'A uuid was not provided.' unless uuid
  retrieve(:get, details_url(uuid), params)
end

.status(uuid, params = {}) ⇒ Object

Raises:

  • (ArgumentError)


8
9
10
11
# File 'lib/everybit/video.rb', line 8

def self.status(uuid, params={})
  raise ArgumentError, 'A uuid was not provided.' unless uuid
  retrieve(:get, status_url(uuid), params)
end