Class: ErpIntegration::ProductOptionSet

Inherits:
Resource
  • Object
show all
Defined in:
lib/erp_integration/product_option_set.rb

Overview

Groups one or more ‘ProductOption` records into a named bundle that attaches to product templates. In Fulfil, the option set is what lives on a product template, and its `options` field carries the ids of the individual `ProductOption` records that surface to order lines.

Instance Attribute Summary collapse

Attributes inherited from Resource

#raw_api_response

Method Summary

Methods inherited from Resource

adapter, adapter_klass, adapter_path, adapter_type, #assign_attributes, #initialize, method_missing, resource_name, respond_to_missing?

Methods included from Resources::Persistence

#destroy, included, #persisted?, #update

Methods included from Resources::Validations

#errors, #valid?, #validate_with

Constructor Details

This class inherits a constructor from ErpIntegration::Resource

Instance Attribute Details

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/erp_integration/product_option_set.rb', line 11

def id
  @id
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/erp_integration/product_option_set.rb', line 11

def name
  @name
end

#optionsObject

Returns the value of attribute options.



11
12
13
# File 'lib/erp_integration/product_option_set.rb', line 11

def options
  @options
end