class Pohoda::Parsers::Adb::AddressbookAccountType

Public Instance Methods

account_item() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_account_type.rb, line 7
def account_item
  array_of_at(Adb::AccountItemType, ['adb:accountItem'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/adb/addressbook_account_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:account_item] = account_item.map(&:to_h) if has? 'adb:accountItem'

  hash
end