Sha256: 1684ad1fde74b9411c93fbde3427263672ed5742bf04240798cf790507a05996
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
module MoneyS3 module Parsers class VzorKomponentaType include ParserCore::BaseParser def header submodel_at(HeaderKusovnikType, 'Header') end def child submodel_at(ChildKusovnikType, 'Child') end def km_karta submodel_at(KmKartaType, 'KmKarta') end def to_h_with_attrs hash = ParserCore::HashWithAttributes.new({}, attributes) hash[:header] = header.to_h_with_attrs if has? 'Header' hash[:child] = child.to_h_with_attrs if has? 'Child' hash[:km_karta] = km_karta.to_h_with_attrs if has? 'KmKarta' 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/vzor_komponenta_type.rb |
money_s3-0.11.0 | lib/money_s3/parsers/vzor_komponenta_type.rb |