Class: TrailerVote::Api::Product::Video
- Inherits:
-
Object
- Object
- TrailerVote::Api::Product::Video
- Defined in:
- lib/trailer_vote/api/product/video.rb,
lib/trailer_vote/api/product/video/find.rb,
lib/trailer_vote/api/product/video/urls.rb,
lib/trailer_vote/api/product/video/create.rb
Defined Under Namespace
Instance Method Summary collapse
-
#back ⇒ TrailerVote::Api::Product::Find
Api to deal with a found product.
- #create ⇒ Object
-
#find(result: nil) ⇒ TrailerVote::Api::Product::Video::Find
The api to deal with the found video.
-
#initialize(configuration:, product: nil) ⇒ Video
constructor
A new instance of Video.
-
#urls ⇒ TrailerVote::Api::Product::Video::Urls
The api to get the video urls for the current product.
Constructor Details
#initialize(configuration:, product: nil) ⇒ Video
Returns a new instance of Video.
20 21 22 23 |
# File 'lib/trailer_vote/api/product/video.rb', line 20 def initialize(configuration:, product: nil) self.configuration = configuration self.product = product end |
Instance Method Details
#back ⇒ TrailerVote::Api::Product::Find
Returns api to deal with a found product.
26 27 28 |
# File 'lib/trailer_vote/api/product/video.rb', line 26 def back product end |
#create ⇒ Object
12 13 14 |
# File 'lib/trailer_vote/api/product/video/create.rb', line 12 def create Create.new(configuration: configuration, product: product) end |
#find(result: nil) ⇒ TrailerVote::Api::Product::Video::Find
Returns the api to deal with the found video.
16 17 18 |
# File 'lib/trailer_vote/api/product/video/find.rb', line 16 def find(result: nil) Find.new(configuration: configuration, result: result) end |
#urls ⇒ TrailerVote::Api::Product::Video::Urls
Returns the api to get the video urls for the current product.
12 13 14 |
# File 'lib/trailer_vote/api/product/video/urls.rb', line 12 def urls Urls.new(configuration: configuration, product: product) end |