Class: Elmas::BankAccount

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/elmas/resources/bank_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



12
13
14
# File 'lib/elmas/resources/bank_account.rb', line 12

def base_path
  "crm/BankAccounts"
end

#mandatory_attributesObject



16
17
18
# File 'lib/elmas/resources/bank_account.rb', line 16

def mandatory_attributes
  %i[account]
end

#other_attributesObject

https//start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=CRMAccounts rubocopdisable Metrics/MethodLength



22
23
24
25
26
27
28
29
30
# File 'lib/elmas/resources/bank_account.rb', line 22

def other_attributes
  %i[
    id account account_name bank
    bank_account bank_description
    bank_name BIC_code description
    division format IBAN type
    type_description main
  ]
end

#valid_actionsObject



8
9
10
# File 'lib/elmas/resources/bank_account.rb', line 8

def valid_actions
  %i[get]
end