Class: Beanie::Customer

Inherits:
Api
  • Object
show all
Defined in:
lib/beanie/customer.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

#initializeCustomer

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

#balanceObject

Returns the value of attribute balance.



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

def balance
  @balance
end

#credit_holdObject

Returns the value of attribute credit_hold.



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

def credit_hold
  @credit_hold
end

#credit_limitObject

Returns the value of attribute credit_limit.



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

def credit_limit
  @credit_limit
end

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#customer_vatObject

Returns the value of attribute customer_vat.



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

def customer_vat
  @customer_vat
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#internal_refObject

Returns the value of attribute internal_ref.



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

def internal_ref
  @internal_ref
end

#invoice_methodObject

Returns the value of attribute invoice_method.



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

def invoice_method
  @invoice_method
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#termsObject

Returns the value of attribute terms.



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

def terms
  @terms
end