class MoneyS3::Parsers::MsgKomponentaType

Public Instance Methods

km_karta() click to toggle source
# File lib/money_s3/parsers/msg_komponenta_type.rb, line 6
def km_karta
  submodel_at(MessageType, 'KmKarta')
end
sklad() click to toggle source
# File lib/money_s3/parsers/msg_komponenta_type.rb, line 10
def sklad
  submodel_at(MessageType, 'Sklad')
end
to_h() click to toggle source
Calls superclass method MoneyS3::Parsers::MessageType#to_h
# File lib/money_s3/parsers/msg_komponenta_type.rb, line 14
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:km_karta] = km_karta.to_h if has? 'KmKarta'
  hash[:sklad] = sklad.to_h if has? 'Sklad'

  hash
  super.merge(hash)
end