Class: Beanie::PurchaseOrder

Inherits:
Api
  • Object
show all
Defined in:
lib/beanie/purchase_order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializePurchaseOrder

Initialize instance variables



37
38
39
40
41
42
43
44
# File 'lib/beanie/purchase_order.rb', line 37

def initialize
  @id = nil
  @date = nil
  @number = nil
  @title = nil
  @currency = nil
  @supplier_id = nil
end

Instance Attribute Details

#currencyObject

Returns the value of attribute currency.



33
34
35
# File 'lib/beanie/purchase_order.rb', line 33

def currency
  @currency
end

#dateObject

Returns the value of attribute date.



32
33
34
# File 'lib/beanie/purchase_order.rb', line 32

def date
  @date
end

#idObject

Returns the value of attribute id.



32
33
34
# File 'lib/beanie/purchase_order.rb', line 32

def id
  @id
end

#numberObject

Returns the value of attribute number.



32
33
34
# File 'lib/beanie/purchase_order.rb', line 32

def number
  @number
end

#supplier_idObject

Returns the value of attribute supplier_id.



33
34
35
# File 'lib/beanie/purchase_order.rb', line 33

def supplier_id
  @supplier_id
end

#titleObject

Returns the value of attribute title.



32
33
34
# File 'lib/beanie/purchase_order.rb', line 32

def title
  @title
end