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