Class: MoneyS3::Parsers::MsgPolozType
- Inherits:
-
MessageType
show all
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/msg_poloz_type.rb
Instance Method Summary
collapse
Methods inherited from MessageType
#data, #data_attributes, #error_info, #reference, #status, #status_attributes
Instance Method Details
#km_karta ⇒ Object
6
7
8
|
# File 'lib/money_s3/parsers/msg_poloz_type.rb', line 6
def km_karta
submodel_at(MessageType, 'KmKarta')
end
|
#sklad ⇒ Object
10
11
12
|
# File 'lib/money_s3/parsers/msg_poloz_type.rb', line 10
def sklad
submodel_at(MessageType, 'Sklad')
end
|
#to_h ⇒ Object
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/money_s3/parsers/msg_poloz_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
|