Class: Beanie::PurchaseOrderItem
- Defined in:
- lib/beanie/purchase_order_item.rb
Constant Summary collapse
- STATE_NEW =
0- STATE_PARTIAL =
1- STATE_BACKORDER =
2- STATE_COMPLETE =
3- STATE_NAMES =
[ ["Awaiting Receipt", STATE_NEW], ["Partial Delivery", STATE_PARTIAL], ["Back-Order", STATE_BACKORDER], ["Item Complete", STATE_COMPLETE] ].freeze
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#discount ⇒ Object
Returns the value of attribute discount.
-
#id ⇒ Object
Returns the value of attribute id.
-
#purchase_order_id ⇒ Object
Returns the value of attribute purchase_order_id.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#sales_tax ⇒ Object
Returns the value of attribute sales_tax.
-
#state ⇒ Object
Returns the value of attribute state.
-
#unit_cost ⇒ Object
Returns the value of attribute unit_cost.
Instance Method Summary collapse
-
#initialize ⇒ PurchaseOrderItem
constructor
Initialize instance variables.
Methods inherited from Api
all, build_url, #construct_path, delete, #extract, #field_name, find, get, #object_name, #populate, post, put, #save!, set_headers
Constructor Details
#initialize ⇒ PurchaseOrderItem
Initialize instance variables
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/beanie/purchase_order_item.rb', line 49 def initialize @id = nil @description = nil @discount = nil @quantity = nil @state = nil @unit_cost = nil @purchase_order_id = nil @sales_tax = nil end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
32 33 34 |
# File 'lib/beanie/purchase_order_item.rb', line 32 def description @description end |
#discount ⇒ Object
Returns the value of attribute discount.
32 33 34 |
# File 'lib/beanie/purchase_order_item.rb', line 32 def discount @discount end |
#id ⇒ Object
Returns the value of attribute id.
32 33 34 |
# File 'lib/beanie/purchase_order_item.rb', line 32 def id @id end |
#purchase_order_id ⇒ Object
Returns the value of attribute purchase_order_id.
33 34 35 |
# File 'lib/beanie/purchase_order_item.rb', line 33 def purchase_order_id @purchase_order_id end |
#quantity ⇒ Object
Returns the value of attribute quantity.
32 33 34 |
# File 'lib/beanie/purchase_order_item.rb', line 32 def quantity @quantity end |
#sales_tax ⇒ Object
Returns the value of attribute sales_tax.
33 34 35 |
# File 'lib/beanie/purchase_order_item.rb', line 33 def sales_tax @sales_tax end |
#state ⇒ Object
Returns the value of attribute state.
32 33 34 |
# File 'lib/beanie/purchase_order_item.rb', line 32 def state @state end |
#unit_cost ⇒ Object
Returns the value of attribute unit_cost.
32 33 34 |
# File 'lib/beanie/purchase_order_item.rb', line 32 def unit_cost @unit_cost end |