Class: Elmas::VatCode

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/elmas/resources/vat_code.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/vat_code.rb', line 5

def base_path
  "vat/VATCodes"
end

#mandatory_attributesObject



19
20
21
# File 'lib/elmas/resources/vat_code.rb', line 19

def mandatory_attributes
  [:code, :description]
end

#other_attributesObject



9
10
11
12
13
14
15
16
17
# File 'lib/elmas/resources/vat_code.rb', line 9

def other_attributes
  [
    :account, :calculation_basis, :charged, :EU_sales_listing,
    :GL_discount_purchase, :GL_discount_sales, :GL_to_claim, :GL_to_pay,
    :intra_stat, :is_blocked, :legal_text, :tax_return_type, :type,
    :vat_doc_type, :vat_margin, :VAT_partial_ratio, :VAT_percentages,
    :VAT_transaction_type
  ]
end