Class: Showroom::ProductOption

Inherits:
Resource
  • Object
show all
Defined in:
lib/showroom/models/product_option.rb

Overview

Represents a Shopify product option (e.g. Size, Color).

Examples:

opt = ProductOption.new('name' => 'Size', 'position' => 1, 'values' => ['S', 'M'])
opt.name   # => "Size"
opt.values # => ["S", "M"]

Instance Attribute Summary

Attributes inherited from Resource

#attrs, #client

Method Summary

Methods inherited from Resource

#==, #[], has_many, has_one, #initialize, #inspect, main_attr_keys, main_attrs, #method_missing, #respond_to_missing?, #to_h

Constructor Details

This class inherits a constructor from Showroom::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Showroom::Resource