Class: Beanie::Customer
Instance Attribute Summary collapse
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#credit_hold ⇒ Object
Returns the value of attribute credit_hold.
-
#credit_limit ⇒ Object
Returns the value of attribute credit_limit.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#customer_vat ⇒ Object
Returns the value of attribute customer_vat.
-
#id ⇒ Object
Returns the value of attribute id.
-
#internal_ref ⇒ Object
Returns the value of attribute internal_ref.
-
#invoice_method ⇒ Object
Returns the value of attribute invoice_method.
-
#name ⇒ Object
Returns the value of attribute name.
-
#state ⇒ Object
Returns the value of attribute state.
-
#terms ⇒ Object
Returns the value of attribute terms.
Instance Method Summary collapse
-
#initialize ⇒ Customer
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 ⇒ Customer
Initialize instance variables
37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/beanie/customer.rb', line 37 def initialize @id = nil @name = nil @state = nil @balance = nil @terms = nil @customer_vat = nil @currency = nil @internal_ref = nil @credit_limit = nil @credit_hold = nil @invoice_method = nil end |
Instance Attribute Details
#balance ⇒ Object
Returns the value of attribute balance.
32 33 34 |
# File 'lib/beanie/customer.rb', line 32 def balance @balance end |
#credit_hold ⇒ Object
Returns the value of attribute credit_hold.
33 34 35 |
# File 'lib/beanie/customer.rb', line 33 def credit_hold @credit_hold end |
#credit_limit ⇒ Object
Returns the value of attribute credit_limit.
33 34 35 |
# File 'lib/beanie/customer.rb', line 33 def credit_limit @credit_limit end |
#currency ⇒ Object
Returns the value of attribute currency.
32 33 34 |
# File 'lib/beanie/customer.rb', line 32 def currency @currency end |
#customer_vat ⇒ Object
Returns the value of attribute customer_vat.
32 33 34 |
# File 'lib/beanie/customer.rb', line 32 def customer_vat @customer_vat end |
#id ⇒ Object
Returns the value of attribute id.
32 33 34 |
# File 'lib/beanie/customer.rb', line 32 def id @id end |
#internal_ref ⇒ Object
Returns the value of attribute internal_ref.
33 34 35 |
# File 'lib/beanie/customer.rb', line 33 def internal_ref @internal_ref end |
#invoice_method ⇒ Object
Returns the value of attribute invoice_method.
33 34 35 |
# File 'lib/beanie/customer.rb', line 33 def invoice_method @invoice_method end |
#name ⇒ Object
Returns the value of attribute name.
32 33 34 |
# File 'lib/beanie/customer.rb', line 32 def name @name end |
#state ⇒ Object
Returns the value of attribute state.
32 33 34 |
# File 'lib/beanie/customer.rb', line 32 def state @state end |
#terms ⇒ Object
Returns the value of attribute terms.
32 33 34 |
# File 'lib/beanie/customer.rb', line 32 def terms @terms end |