Class: Elmas::GLAccount

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/elmas/resources/gl_account.rb

Instance Attribute Summary

Attributes included from Resource

#attributes, #response, #url

Instance Method Summary collapse

Methods included from Resource

#delete, #find, #find_all, #find_by, #get, #id, #id?, #initialize, #method_missing, #save, #valid?

Methods included from Resource::Sanitizer

#sanitize, #sanitize_date_time, #sanitize_has_many, #sanitize_relationship

Methods included from Resource::UriMethods

#apply_filters, #apply_order, #apply_select, #base_filter, #basic_identifier_uri, #query_attribute, #sanitize_value, #uri

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Elmas::Resource

Instance Method Details

#base_pathObject



5
6
7
# File 'lib/elmas/resources/gl_account.rb', line 5

def base_path
  "financial/GLAccounts"
end

#mandatory_attributesObject



9
10
11
# File 'lib/elmas/resources/gl_account.rb', line 9

def mandatory_attributes
  [:code, :description]
end

#other_attributesObject



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/elmas/resources/gl_account.rb', line 13

def other_attributes
  [
    :assimilated_VAT_box, :balance_side, :balance_type, :belcotax_type, :compress,
    :cost_center, :cost_unit, :exclude_VAT_listing, :expense_non_deductible_percentage,
    :is_blocked, :matching, :private_GL_account, :private_percentage, :reporting_code,
    :revalue_currency, :searc_code, :type, :use_cost_center, :use_cost_unit,
    :VAT_code, :VAT_GL_account_type, :VAT_non_deductible_GL_account,
    :VAT_non_deductible_percentage, :VAT_system, :year_end_cost_GL_account,
    :year_end_reflection_GL_account
  ]
end