Sha256: 90c70189f3cec8733599fca117827f2c3fd6075ed5b8875e2cdc1268996f3f89
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
module MoneyS3 module Parsers class Reference include ParserCore::BaseParser def typ_kusovnik submodel_at(KusovnikType, 'TypKusovnik') end def vzor submodel_at(VzorKomponentaType, 'Vzor') end def to_h_with_attrs hash = ParserCore::HashWithAttributes.new({}, attributes) hash[:typ_kusovnik] = typ_kusovnik.to_h_with_attrs if has? 'TypKusovnik' hash[:vzor] = vzor.to_h_with_attrs if has? 'Vzor' hash end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.12.0 | lib/money_s3/parsers/reference.rb |
money_s3-0.11.0 | lib/money_s3/parsers/reference.rb |