Class: Comptaline::AccountingEntry::GeneralOperation

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

Direct Known Subclasses

Clearance

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#format_date

Instance Attribute Details

#accounting_journalObject

Returns the value of attribute accounting_journal.



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

def accounting_journal
  @accounting_journal
end

#accounting_writing_numberObject

Returns the value of attribute accounting_writing_number.



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

def accounting_writing_number
  @accounting_writing_number
end

#actionObject

Returns the value of attribute action.



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

def action
  @action
end

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#communicationObject

Returns the value of attribute communication.



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

def communication
  @communication
end

#currency_codeObject

Returns the value of attribute currency_code.



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

def currency_code
  @currency_code
end

#dateObject

Returns the value of attribute date.



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

def date
  @date
end

#indexObject

Returns the value of attribute index.



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

def index
  @index
end

#match_idObject

Returns the value of attribute match_id.



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

def match_id
  @match_id
end

#operation_typeObject

Returns the value of attribute operation_type.



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

def operation_type
  @operation_type
end

#referenceObject

Returns the value of attribute reference.



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

def reference
  @reference
end

Instance Method Details

#to_aObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/comptaline/accounting_entry/general_operation.rb', line 7

def to_a
  [
    @action,                                    
    @operation_type,                                      
    @reference,                                   
    @amount,                
    format_date(@date),
    @communication,                                  
    @currency_code,                           
    @accounting_journal,                                      
    @match_id,                                               
    @accounting_writing_number,                                           
    @index                                                 
  ]
end