Sha256: f89ea99bdb72c1affc8a97f1a81fdcdfab841862ca0f901a33088c493bf71fb8
Contents?: true
Size: 556 Bytes
Versions: 4
Compression:
Stored size: 556 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_with_attrs hash = HashWithAttributes.new({}, attributes) hash[:km_karta] = km_karta.to_h_with_attrs if has? 'KmKarta' hash[:sklad] = sklad.to_h_with_attrs if has? 'Sklad' hash end end end end
Version data entries
4 entries across 4 versions & 1 rubygems