Class: ErpIntegration::Product

Inherits:
Resource
  • Object
show all
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

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

Dynamic Method Handling

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

Instance Attribute Details

#abc_classificationObject

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_categoryObject

Returns the value of attribute account_category.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def 
  @account_category
end

#account_cogs_usedObject

Returns the value of attribute account_cogs_used.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def 
  @account_cogs_used
end

#account_expense_usedObject

Returns the value of attribute account_expense_used.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def 
  @account_expense_used
end

#account_revenue_usedObject

Returns the value of attribute account_revenue_used.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def 
  @account_revenue_used
end

#account_stock_lost_found_usedObject

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
end

#account_stock_production_usedObject

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
end

#account_stock_supplier_usedObject

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
end

#account_stock_usedObject

Returns the value of attribute account_stock_used.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def 
  @account_stock_used
end

#activeObject

Returns the value of attribute active.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def active
  @active
end

#asinObject

Returns the value of attribute asin.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def asin
  @asin
end

#attachmentsObject

Returns the value of attribute attachments.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def attachments
  @attachments
end

#attribute_setObject

Returns the value of attribute attribute_set.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def attribute_set
  @attribute_set
end

#attributesObject

Returns the value of attribute attributes.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def attributes
  @attributes
end

#attributes_jsonObject

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_consumedObject

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_salesObject

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_consumedObject

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_salesObject

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_priceObject

Returns the value of attribute average_price.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def average_price
  @average_price
end

#bomsObject

Returns the value of attribute boms.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def boms
  @boms
end

#box_typeObject

Returns the value of attribute box_type.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def box_type
  @box_type
end

#brandObject

Returns the value of attribute brand.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def brand
  @brand
end

#channel_listingsObject

Returns the value of attribute channel_listings.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def channel_listings
  @channel_listings
end

#codeObject

Returns the value of attribute code.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def code
  @code
end

#consumableObject

Returns the value of attribute consumable.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def consumable
  @consumable
end

#cost_priceObject

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_methodObject

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_originObject

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_dateObject

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_uidObject

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_descriptionObject

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_valueObject

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_leftObject

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_uomObject

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_categoryObject

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

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def description
  @description
end

#dimensions_uomObject

Returns the value of attribute dimensions_uom.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def dimensions_uom
  @dimensions_uom
end

#eanObject

Returns the value of attribute ean.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def ean
  @ean
end

#fulfil_strategyObject

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_maxObject

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_minObject

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_modeObject

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_pricesObject

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_categoryObject

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_marginObject

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_profitObject

Returns the value of attribute gross_profit.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def gross_profit
  @gross_profit
end

#heightObject

Returns the value of attribute height.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def height
  @height
end

#hs_codeObject

Returns the value of attribute hs_code.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def hs_code
  @hs_code
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def id
  @id
end

#is_gift_cardObject

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_costObject

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_daysObject

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

#lengthObject

Returns the value of attribute length.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def length
  @length
end

#list_priceObject

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_descriptionObject

Returns the value of attribute long_description.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def long_description
  @long_description
end

#metadataObject

Returns the value of attribute metadata.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def 
  @metadata
end

#next_shipping_dateObject

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_suppliersObject

Returns the value of attribute product_suppliers.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def product_suppliers
  @product_suppliers
end

#purchasableObject

Returns the value of attribute purchasable.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def purchasable
  @purchasable
end

#purchase_uomObject

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_availableObject

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_buildableObject

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_inboundObject

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_ordersObject

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_handObject

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_outboundObject

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_returnedObject

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_soldObject

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_consumptionObject

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_wipObject

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_daysObject

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

#salableObject

Returns the value of attribute salable.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def salable
  @salable
end

#sale_uomObject

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_requiredObject

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_availableObject

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

#templateObject

Returns the value of attribute template.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def template
  @template
end

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def type
  @type
end

#upcObject

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_descriptionObject

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_nameObject

Returns the value of attribute variant_name.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def variant_name
  @variant_name
end

#weightObject

Returns the value of attribute weight.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def weight
  @weight
end

#weight_uomObject

Returns the value of attribute weight_uom.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def weight_uom
  @weight_uom
end

#widthObject

Returns the value of attribute width.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def width
  @width
end

#write_dateObject

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_uidObject

Returns the value of attribute write_uid.



7
8
9
# File 'lib/erp_integration/product.rb', line 7

def write_uid
  @write_uid
end