Class: Dodopayments::Resources::Products::Images
- Inherits:
-
Object
- Object
- Dodopayments::Resources::Products::Images
- Defined in:
- lib/dodopayments/resources/products/images.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Images
constructor
private
A new instance of Images.
- #update(id, force_update: nil, request_options: {}) ⇒ Dodopayments::Models::Products::ImageUpdateResponse
Constructor Details
#initialize(client:) ⇒ Images
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Images.
32 33 34 |
# File 'lib/dodopayments/resources/products/images.rb', line 32 def initialize(client:) @client = client end |
Instance Method Details
#update(id, force_update: nil, request_options: {}) ⇒ Dodopayments::Models::Products::ImageUpdateResponse
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/dodopayments/resources/products/images.rb', line 18 def update(id, params = {}) parsed, = Dodopayments::Products::ImageUpdateParams.dump_request(params) @client.request( method: :put, path: ["products/%1$s/images", id], query: parsed, model: Dodopayments::Models::Products::ImageUpdateResponse, options: ) end |