Class: Wes::Data::API::Model::VideoPartnerAsset
- Defined in:
- lib/wes/data/api/model/video_partner_asset.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
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
#brand_partner_account ⇒ Object
9 10 11 12 13 14 |
# File 'lib/wes/data/api/model/video_partner_asset.rb', line 9 def brand_partner_account records = @attributes.brand_partner_account map_objects( records, Wes::Data::API::Model::BrandPartnerAccount ) end |
#update(changes) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/wes/data/api/model/video_partner_asset.rb', line 16 def update(changes) route = [routes.video, routes.partner_asset, @attributes.id].join('/') @attributes = client.put( route, @attributes.to_h.merge(changes) ).first self end |