Class: Dodopayments::Resources::Products::Images

Inherits:
Object
  • Object
show all
Defined in:
lib/dodopayments/resources/products/images.rb

Instance Method Summary collapse

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.

Parameters:



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

Parameters:

Returns:

See Also:



18
19
20
21
22
23
24
25
26
27
# File 'lib/dodopayments/resources/products/images.rb', line 18

def update(id, params = {})
  parsed, options = Dodopayments::Products::ImageUpdateParams.dump_request(params)
  @client.request(
    method: :put,
    path: ["products/%1$s/images", id],
    query: parsed,
    model: Dodopayments::Models::Products::ImageUpdateResponse,
    options: options
  )
end