Class: VzaarApi::Video

Constant Summary collapse

ENDPOINT =
'videos'
ATTR_READERS =
[:id, :user_id, :account_id, :categories,
:renditions, :legacy_renditions, :url,
:thumbnail_url, :state,
:created_at, :updated_at].freeze
ATTR_ACCESSORS =
[:category_ids, :description, :private, :seo_url, :title].freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Lib::WillPaginate

included

Methods included from Lib::ActiveObject::Delete

included

Methods included from Lib::ActiveObject::Save

included

Methods included from Lib::ActiveObject::Find

included

Methods included from Lib::HasResourceUrl

included

Methods included from Lib::HasAttributes

prepended

Constructor Details

#initialize(attrs = {}) ⇒ Video

Returns a new instance of Video.



20
21
22
# File 'lib/vzaar_api/video.rb', line 20

def initialize(attrs = {})
  update_from_attributes attrs
end

Class Method Details

.create(attrs = {}) ⇒ Object



24
25
26
# File 'lib/vzaar_api/video.rb', line 24

def self.create(attrs = {})
  Strategy::Video::Create.new(attrs, self).execute
end