Class: ErpIntegration::PurchaseRequest

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

Overview

The ‘ErpIntegration::PurchaseRequest` 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

#attachmentsObject

Returns the value of attribute attachments.



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

def attachments
  @attachments
end

#companyObject

Returns the value of attribute company.



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

def company
  @company
end

#create_dateObject

Returns the value of attribute create_date.



7
8
9
# File 'lib/erp_integration/purchase_request.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/purchase_request.rb', line 7

def create_uid
  @create_uid
end

#customerObject

Returns the value of attribute customer.



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

def customer
  @customer
end

#delivery_addressObject

Returns the value of attribute delivery_address.



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

def delivery_address
  @delivery_address
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#metadataObject

Returns the value of attribute metadata.



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

def 
  @metadata
end

#partyObject

Returns the value of attribute party.



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

def party
  @party
end

#productObject

Returns the value of attribute product.



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

def product
  @product
end

#purchaseObject

Returns the value of attribute purchase.



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

def purchase
  @purchase
end

#purchase_dateObject

Returns the value of attribute purchase_date.



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

def purchase_date
  @purchase_date
end

#purchase_lineObject

Returns the value of attribute purchase_line.



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

def purchase_line
  @purchase_line
end

#quantityObject

Returns the value of attribute quantity.



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

def quantity
  @quantity
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#uomObject

Returns the value of attribute uom.



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

def uom
  @uom
end

#warehouseObject

Returns the value of attribute warehouse.



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

def warehouse
  @warehouse
end

#write_dateObject

Returns the value of attribute write_date.



7
8
9
# File 'lib/erp_integration/purchase_request.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/purchase_request.rb', line 7

def write_uid
  @write_uid
end