Method: VariantOptions#get_variant_option
- Defined in:
- lib/user/ecommerce/variant_options.rb
#get_variant_option(id, options = nil) ⇒ Object
Get variant option.
Get a variant options info.
Parameters
- id
-
(Integer) – Variant option id.
- options
-
(Hash) – List of Resource Collection Options shown above can be used as parameter.
First Example
@data = @mints_user.get_variant_option(1)
Second Example
= { "fields": "id, title" }
@data = @mints_user.get_variant_option(1, )
35 36 37 |
# File 'lib/user/ecommerce/variant_options.rb', line 35 def get_variant_option(id, = nil) return @client.raw("get", "/ecommerce/variant-options/#{id}", ) end |