Class: ErpIntegration::Product
- Defined in:
- lib/erp_integration/product.rb
Overview
The ‘ErpIntegration::Product` exposes an uniformed API for interaction with third-party ERP vendors.
Instance Attribute Summary collapse
-
#abc_classification ⇒ Object
Returns the value of attribute abc_classification.
-
#account_category ⇒ Object
Returns the value of attribute account_category.
-
#account_cogs_used ⇒ Object
Returns the value of attribute account_cogs_used.
-
#account_expense_used ⇒ Object
Returns the value of attribute account_expense_used.
-
#account_revenue_used ⇒ Object
Returns the value of attribute account_revenue_used.
-
#account_stock_lost_found_used ⇒ Object
Returns the value of attribute account_stock_lost_found_used.
-
#account_stock_production_used ⇒ Object
Returns the value of attribute account_stock_production_used.
-
#account_stock_supplier_used ⇒ Object
Returns the value of attribute account_stock_supplier_used.
-
#account_stock_used ⇒ Object
Returns the value of attribute account_stock_used.
-
#active ⇒ Object
Returns the value of attribute active.
-
#asin ⇒ Object
Returns the value of attribute asin.
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#attribute_set ⇒ Object
Returns the value of attribute attribute_set.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#attributes_json ⇒ Object
Returns the value of attribute attributes_json.
-
#average_daily_consumed ⇒ Object
Returns the value of attribute average_daily_consumed.
-
#average_daily_sales ⇒ Object
Returns the value of attribute average_daily_sales.
-
#average_monthly_consumed ⇒ Object
Returns the value of attribute average_monthly_consumed.
-
#average_monthly_sales ⇒ Object
Returns the value of attribute average_monthly_sales.
-
#average_price ⇒ Object
Returns the value of attribute average_price.
-
#boms ⇒ Object
Returns the value of attribute boms.
-
#box_type ⇒ Object
Returns the value of attribute box_type.
-
#brand ⇒ Object
Returns the value of attribute brand.
-
#channel_listings ⇒ Object
Returns the value of attribute channel_listings.
-
#code ⇒ Object
Returns the value of attribute code.
-
#consumable ⇒ Object
Returns the value of attribute consumable.
-
#cost_price ⇒ Object
Returns the value of attribute cost_price.
-
#cost_price_method ⇒ Object
Returns the value of attribute cost_price_method.
-
#country_of_origin ⇒ Object
Returns the value of attribute country_of_origin.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#create_uid ⇒ Object
Returns the value of attribute create_uid.
-
#customs_description ⇒ Object
Returns the value of attribute customs_description.
-
#customs_value ⇒ Object
Returns the value of attribute customs_value.
-
#days_of_inventory_left ⇒ Object
Returns the value of attribute days_of_inventory_left.
-
#default_uom ⇒ Object
Returns the value of attribute default_uom.
-
#default_uom_category ⇒ Object
Returns the value of attribute default_uom_category.
-
#description ⇒ Object
Returns the value of attribute description.
-
#dimensions_uom ⇒ Object
Returns the value of attribute dimensions_uom.
-
#ean ⇒ Object
Returns the value of attribute ean.
-
#fulfil_strategy ⇒ Object
Returns the value of attribute fulfil_strategy.
-
#gc_max ⇒ Object
Returns the value of attribute gc_max.
-
#gc_min ⇒ Object
Returns the value of attribute gc_min.
-
#gift_card_delivery_mode ⇒ Object
Returns the value of attribute gift_card_delivery_mode.
-
#gift_card_prices ⇒ Object
Returns the value of attribute gift_card_prices.
-
#google_product_category ⇒ Object
Returns the value of attribute google_product_category.
-
#gross_margin ⇒ Object
Returns the value of attribute gross_margin.
-
#gross_profit ⇒ Object
Returns the value of attribute gross_profit.
-
#height ⇒ Object
Returns the value of attribute height.
-
#hs_code ⇒ Object
Returns the value of attribute hs_code.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_gift_card ⇒ Object
Returns the value of attribute is_gift_card.
-
#landed_cost ⇒ Object
Returns the value of attribute landed_cost.
-
#lead_time_in_days ⇒ Object
Returns the value of attribute lead_time_in_days.
-
#length ⇒ Object
Returns the value of attribute length.
-
#list_price ⇒ Object
Returns the value of attribute list_price.
-
#long_description ⇒ Object
Returns the value of attribute long_description.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#next_shipping_date ⇒ Object
Returns the value of attribute next_shipping_date.
-
#product_suppliers ⇒ Object
Returns the value of attribute product_suppliers.
-
#purchasable ⇒ Object
Returns the value of attribute purchasable.
-
#purchase_uom ⇒ Object
Returns the value of attribute purchase_uom.
-
#quantity_available ⇒ Object
Returns the value of attribute quantity_available.
-
#quantity_buildable ⇒ Object
Returns the value of attribute quantity_buildable.
-
#quantity_inbound ⇒ Object
Returns the value of attribute quantity_inbound.
-
#quantity_on_confirmed_purchase_orders ⇒ Object
Returns the value of attribute quantity_on_confirmed_purchase_orders.
-
#quantity_on_hand ⇒ Object
Returns the value of attribute quantity_on_hand.
-
#quantity_outbound ⇒ Object
Returns the value of attribute quantity_outbound.
-
#quantity_returned ⇒ Object
Returns the value of attribute quantity_returned.
-
#quantity_sold ⇒ Object
Returns the value of attribute quantity_sold.
-
#quantity_waiting_consumption ⇒ Object
Returns the value of attribute quantity_waiting_consumption.
-
#quantity_wip ⇒ Object
Returns the value of attribute quantity_wip.
-
#safety_stock_days ⇒ Object
Returns the value of attribute safety_stock_days.
-
#salable ⇒ Object
Returns the value of attribute salable.
-
#sale_uom ⇒ Object
Returns the value of attribute sale_uom.
-
#scan_required ⇒ Object
Returns the value of attribute scan_required.
-
#ship_from_stock_if_available ⇒ Object
Returns the value of attribute ship_from_stock_if_available.
-
#template ⇒ Object
Returns the value of attribute template.
-
#type ⇒ Object
Returns the value of attribute type.
-
#upc ⇒ Object
Returns the value of attribute upc.
-
#use_name_as_customs_description ⇒ Object
Returns the value of attribute use_name_as_customs_description.
-
#variant_name ⇒ Object
Returns the value of attribute variant_name.
-
#weight ⇒ Object
Returns the value of attribute weight.
-
#weight_uom ⇒ Object
Returns the value of attribute weight_uom.
-
#width ⇒ Object
Returns the value of attribute width.
-
#write_date ⇒ Object
Returns the value of attribute write_date.
-
#write_uid ⇒ Object
Returns the value of attribute write_uid.
Attributes inherited from Resource
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
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ErpIntegration::Resource
Instance Attribute Details
#abc_classification ⇒ Object
Returns the value of attribute abc_classification.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def abc_classification @abc_classification end |
#account_category ⇒ Object
Returns the value of attribute account_category.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def account_category @account_category end |
#account_cogs_used ⇒ Object
Returns the value of attribute account_cogs_used.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def account_cogs_used @account_cogs_used end |
#account_expense_used ⇒ Object
Returns the value of attribute account_expense_used.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def account_expense_used @account_expense_used end |
#account_revenue_used ⇒ Object
Returns the value of attribute account_revenue_used.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def account_revenue_used @account_revenue_used end |
#account_stock_lost_found_used ⇒ Object
Returns the value of attribute account_stock_lost_found_used.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def account_stock_lost_found_used @account_stock_lost_found_used end |
#account_stock_production_used ⇒ Object
Returns the value of attribute account_stock_production_used.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def account_stock_production_used @account_stock_production_used end |
#account_stock_supplier_used ⇒ Object
Returns the value of attribute account_stock_supplier_used.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def account_stock_supplier_used @account_stock_supplier_used end |
#account_stock_used ⇒ Object
Returns the value of attribute account_stock_used.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def account_stock_used @account_stock_used end |
#active ⇒ Object
Returns the value of attribute active.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def active @active end |
#asin ⇒ Object
Returns the value of attribute asin.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def asin @asin end |
#attachments ⇒ Object
Returns the value of attribute attachments.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def @attachments end |
#attribute_set ⇒ Object
Returns the value of attribute attribute_set.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def attribute_set @attribute_set end |
#attributes ⇒ Object
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def attributes @attributes end |
#attributes_json ⇒ Object
Returns the value of attribute attributes_json.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def attributes_json @attributes_json end |
#average_daily_consumed ⇒ Object
Returns the value of attribute average_daily_consumed.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def average_daily_consumed @average_daily_consumed end |
#average_daily_sales ⇒ Object
Returns the value of attribute average_daily_sales.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def average_daily_sales @average_daily_sales end |
#average_monthly_consumed ⇒ Object
Returns the value of attribute average_monthly_consumed.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def average_monthly_consumed @average_monthly_consumed end |
#average_monthly_sales ⇒ Object
Returns the value of attribute average_monthly_sales.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def average_monthly_sales @average_monthly_sales end |
#average_price ⇒ Object
Returns the value of attribute average_price.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def average_price @average_price end |
#boms ⇒ Object
Returns the value of attribute boms.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def boms @boms end |
#box_type ⇒ Object
Returns the value of attribute box_type.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def box_type @box_type end |
#brand ⇒ Object
Returns the value of attribute brand.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def brand @brand end |
#channel_listings ⇒ Object
Returns the value of attribute channel_listings.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def channel_listings @channel_listings end |
#code ⇒ Object
Returns the value of attribute code.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def code @code end |
#consumable ⇒ Object
Returns the value of attribute consumable.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def consumable @consumable end |
#cost_price ⇒ Object
Returns the value of attribute cost_price.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def cost_price @cost_price end |
#cost_price_method ⇒ Object
Returns the value of attribute cost_price_method.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def cost_price_method @cost_price_method end |
#country_of_origin ⇒ Object
Returns the value of attribute country_of_origin.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def country_of_origin @country_of_origin end |
#create_date ⇒ Object
Returns the value of attribute create_date.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def create_date @create_date end |
#create_uid ⇒ Object
Returns the value of attribute create_uid.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def create_uid @create_uid end |
#customs_description ⇒ Object
Returns the value of attribute customs_description.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def customs_description @customs_description end |
#customs_value ⇒ Object
Returns the value of attribute customs_value.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def customs_value @customs_value end |
#days_of_inventory_left ⇒ Object
Returns the value of attribute days_of_inventory_left.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def days_of_inventory_left @days_of_inventory_left end |
#default_uom ⇒ Object
Returns the value of attribute default_uom.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def default_uom @default_uom end |
#default_uom_category ⇒ Object
Returns the value of attribute default_uom_category.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def default_uom_category @default_uom_category end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def description @description end |
#dimensions_uom ⇒ Object
Returns the value of attribute dimensions_uom.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def dimensions_uom @dimensions_uom end |
#ean ⇒ Object
Returns the value of attribute ean.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def ean @ean end |
#fulfil_strategy ⇒ Object
Returns the value of attribute fulfil_strategy.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def fulfil_strategy @fulfil_strategy end |
#gc_max ⇒ Object
Returns the value of attribute gc_max.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def gc_max @gc_max end |
#gc_min ⇒ Object
Returns the value of attribute gc_min.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def gc_min @gc_min end |
#gift_card_delivery_mode ⇒ Object
Returns the value of attribute gift_card_delivery_mode.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def gift_card_delivery_mode @gift_card_delivery_mode end |
#gift_card_prices ⇒ Object
Returns the value of attribute gift_card_prices.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def gift_card_prices @gift_card_prices end |
#google_product_category ⇒ Object
Returns the value of attribute google_product_category.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def google_product_category @google_product_category end |
#gross_margin ⇒ Object
Returns the value of attribute gross_margin.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def gross_margin @gross_margin end |
#gross_profit ⇒ Object
Returns the value of attribute gross_profit.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def gross_profit @gross_profit end |
#height ⇒ Object
Returns the value of attribute height.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def height @height end |
#hs_code ⇒ Object
Returns the value of attribute hs_code.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def hs_code @hs_code end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def id @id end |
#is_gift_card ⇒ Object
Returns the value of attribute is_gift_card.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def is_gift_card @is_gift_card end |
#landed_cost ⇒ Object
Returns the value of attribute landed_cost.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def landed_cost @landed_cost end |
#lead_time_in_days ⇒ Object
Returns the value of attribute lead_time_in_days.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def lead_time_in_days @lead_time_in_days end |
#length ⇒ Object
Returns the value of attribute length.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def length @length end |
#list_price ⇒ Object
Returns the value of attribute list_price.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def list_price @list_price end |
#long_description ⇒ Object
Returns the value of attribute long_description.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def long_description @long_description end |
#metadata ⇒ Object
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def @metadata end |
#next_shipping_date ⇒ Object
Returns the value of attribute next_shipping_date.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def next_shipping_date @next_shipping_date end |
#product_suppliers ⇒ Object
Returns the value of attribute product_suppliers.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def product_suppliers @product_suppliers end |
#purchasable ⇒ Object
Returns the value of attribute purchasable.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def purchasable @purchasable end |
#purchase_uom ⇒ Object
Returns the value of attribute purchase_uom.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def purchase_uom @purchase_uom end |
#quantity_available ⇒ Object
Returns the value of attribute quantity_available.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_available @quantity_available end |
#quantity_buildable ⇒ Object
Returns the value of attribute quantity_buildable.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_buildable @quantity_buildable end |
#quantity_inbound ⇒ Object
Returns the value of attribute quantity_inbound.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_inbound @quantity_inbound end |
#quantity_on_confirmed_purchase_orders ⇒ Object
Returns the value of attribute quantity_on_confirmed_purchase_orders.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_on_confirmed_purchase_orders @quantity_on_confirmed_purchase_orders end |
#quantity_on_hand ⇒ Object
Returns the value of attribute quantity_on_hand.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_on_hand @quantity_on_hand end |
#quantity_outbound ⇒ Object
Returns the value of attribute quantity_outbound.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_outbound @quantity_outbound end |
#quantity_returned ⇒ Object
Returns the value of attribute quantity_returned.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_returned @quantity_returned end |
#quantity_sold ⇒ Object
Returns the value of attribute quantity_sold.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_sold @quantity_sold end |
#quantity_waiting_consumption ⇒ Object
Returns the value of attribute quantity_waiting_consumption.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_waiting_consumption @quantity_waiting_consumption end |
#quantity_wip ⇒ Object
Returns the value of attribute quantity_wip.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def quantity_wip @quantity_wip end |
#safety_stock_days ⇒ Object
Returns the value of attribute safety_stock_days.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def safety_stock_days @safety_stock_days end |
#salable ⇒ Object
Returns the value of attribute salable.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def salable @salable end |
#sale_uom ⇒ Object
Returns the value of attribute sale_uom.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def sale_uom @sale_uom end |
#scan_required ⇒ Object
Returns the value of attribute scan_required.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def scan_required @scan_required end |
#ship_from_stock_if_available ⇒ Object
Returns the value of attribute ship_from_stock_if_available.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def ship_from_stock_if_available @ship_from_stock_if_available end |
#template ⇒ Object
Returns the value of attribute template.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def template @template end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def type @type end |
#upc ⇒ Object
Returns the value of attribute upc.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def upc @upc end |
#use_name_as_customs_description ⇒ Object
Returns the value of attribute use_name_as_customs_description.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def use_name_as_customs_description @use_name_as_customs_description end |
#variant_name ⇒ Object
Returns the value of attribute variant_name.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def variant_name @variant_name end |
#weight ⇒ Object
Returns the value of attribute weight.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def weight @weight end |
#weight_uom ⇒ Object
Returns the value of attribute weight_uom.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def weight_uom @weight_uom end |
#width ⇒ Object
Returns the value of attribute width.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def width @width end |
#write_date ⇒ Object
Returns the value of attribute write_date.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def write_date @write_date end |
#write_uid ⇒ Object
Returns the value of attribute write_uid.
7 8 9 |
# File 'lib/erp_integration/product.rb', line 7 def write_uid @write_uid end |