Sha256: 2688897ecafd50680e5d483a680917c4ae0793be2d13d69728b19e25f42ad87d
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/message_type' module MoneyS3 module Parsers class MsgPolozType include BaseParser def km_karta submodel_at(MessageType, :KmKarta) end def sklad submodel_at(MessageType, :Sklad) end def to_h { km_karta: km_karta.to_h, sklad: sklad.to_h }.delete_if { |k, v| v.nil? || v.empty? } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.4.0 | lib/money_s3/parsers/msg_poloz_type.rb |