Class: Comptaline::AccountingEntry::Customer

Inherits:
Base
  • Object
show all
Defined in:
lib/comptaline/accounting_entry/customer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#format_date

Instance Attribute Details

#bicObject

Returns the value of attribute bic.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def bic
  @bic
end

#categoryObject

Returns the value of attribute category.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def category
  @category
end

#cityObject

Returns the value of attribute city.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def city
  @city
end

#civilityObject

Returns the value of attribute civility.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def civility
  @civility
end

#company_civilityObject

Returns the value of attribute company_civility.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def company_civility
  @company_civility
end

#company_nameObject

Returns the value of attribute company_name.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def company_name
  @company_name
end

#country_codeObject

Returns the value of attribute country_code.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def country_code
  @country_code
end

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def email
  @email
end

#fax_numberObject

Returns the value of attribute fax_number.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def fax_number
  @fax_number
end

#first_nameObject

Returns the value of attribute first_name.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def first_name
  @first_name
end

#ibanObject

Returns the value of attribute iban.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def iban
  @iban
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def id
  @id
end

#language_codeObject

Returns the value of attribute language_code.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def language_code
  @language_code
end

#last_nameObject

Returns the value of attribute last_name.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def last_name
  @last_name
end

#phone_numberObject

Returns the value of attribute phone_number.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def phone_number
  @phone_number
end

#streetObject

Returns the value of attribute street.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def street
  @street
end

#vat_numberObject

Returns the value of attribute vat_number.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def vat_number
  @vat_number
end

#zipcodeObject

Returns the value of attribute zipcode.



4
5
6
# File 'lib/comptaline/accounting_entry/customer.rb', line 4

def zipcode
  @zipcode
end

Instance Method Details

#to_aObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/comptaline/accounting_entry/customer.rb', line 7

def to_a
  [
    action,                                        
    @id,                                     
    client_type,                            
    @language_code,                          
    formatted_company_name,                 
    @company_civility,                       
    name,                                   
    @civility,                               
    @category,                               
    @street,                                 
    formatted_zipcode,                      
    @city,                       
    @country_code,                           
    @phone_number,         
    @fax_number,                             
    formatted_vat_number,                             
    @iban,                                   
    @bic,                                    
    @email                            
  ]
end