Class: Wes::Data::API::Model::Showcase

Inherits:
Base
  • Object
show all
Defined in:
lib/wes/data/api/model/showcase.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

#exist?, #id, #initialize

Constructor Details

This class inherits a constructor from Wes::Data::API::Model::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wes::Data::API::Model::Base

Instance Method Details

#add_videos(video_ids) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/wes/data/api/model/showcase.rb', line 8

def add_videos(video_ids)
  payload = video_ids.map do |video_id|
    {
      showcase_id: id,
      video_id:    video_id
    }
  end
  client.post(add_video_route, payload)
end