Class: VzaarApi::Video
- Includes:
- Lib::ActiveObject::Delete, Lib::ActiveObject::Find, Lib::ActiveObject::Save, Lib::HasAttributes, Lib::HasResourceUrl, Lib::WillPaginate
- Defined in:
- lib/vzaar_api/video.rb
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
-
#initialize(attrs = {}) ⇒ Video
constructor
A new instance of Video.
Methods included from Lib::WillPaginate
Methods included from Lib::ActiveObject::Delete
Methods included from Lib::ActiveObject::Save
Methods included from Lib::ActiveObject::Find
Methods included from Lib::HasResourceUrl
Methods included from Lib::HasAttributes
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 |