class MoneyS3::Parsers::MsgKmKartaType

Public Instance Methods

komponenta() click to toggle source
# File lib/money_s3/parsers/msg_km_karta_type.rb, line 6
def komponenta
  array_of_at(MsgKomponentaType, ['Komponenta'])
end
to_h() click to toggle source
Calls superclass method MoneyS3::Parsers::MessageType#to_h
# File lib/money_s3/parsers/msg_km_karta_type.rb, line 10
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:komponenta] = komponenta.map(&:to_h) if has? 'Komponenta'

  hash
  super.merge(hash)
end