class Pohoda::Parsers::Adb::AccountItemType

Public Instance Methods

account_number() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 19
def account_number
  at 'adb:accountNumber'
end
account_number_attributes() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 23
def account_number_attributes
  attributes_at 'adb:accountNumber'
end
action_type() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 7
def action_type
  submodel_at(Typ::ActionTypeItem, 'adb:actionType')
end
bank_code() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 35
def bank_code
  at 'adb:bankCode'
end
bank_code_attributes() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 39
def bank_code_attributes
  attributes_at 'adb:bankCode'
end
default_account() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 43
def default_account
  at 'adb:defaultAccount'
end
default_account_attributes() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 47
def default_account_attributes
  attributes_at 'adb:defaultAccount'
end
id() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 11
def id
  at 'adb:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 15
def id_attributes
  attributes_at 'adb:id'
end
sym_spec() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 27
def sym_spec
  at 'adb:symSpec'
end
sym_spec_attributes() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 31
def sym_spec_attributes
  attributes_at 'adb:symSpec'
end
to_h() click to toggle source
# File lib/pohoda/parsers/adb/account_item_type.rb, line 51
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:action_type] = action_type.to_h if has? 'adb:actionType'
  hash[:id] = id if has? 'adb:id'
  hash[:id_attributes] = id_attributes if has? 'adb:id'
  hash[:account_number] = account_number if has? 'adb:accountNumber'
  hash[:account_number_attributes] = account_number_attributes if has? 'adb:accountNumber'
  hash[:sym_spec] = sym_spec if has? 'adb:symSpec'
  hash[:sym_spec_attributes] = sym_spec_attributes if has? 'adb:symSpec'
  hash[:bank_code] = bank_code if has? 'adb:bankCode'
  hash[:bank_code_attributes] = bank_code_attributes if has? 'adb:bankCode'
  hash[:default_account] = default_account if has? 'adb:defaultAccount'
  hash[:default_account_attributes] = default_account_attributes if has? 'adb:defaultAccount'

  hash
end