Sha256: 20aabb59d2884437d9b1accb0243ffd290d46e4ed734d47d8b60a4125a2bba2f
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
module MoneyS3 module Parsers class KomponentaKusovnikType include ParserCore::BaseParser def child submodel_at(ChildKusovnikType, 'Child') end def reference submodel_at(Reference, 'Reference') end def to_h hash = {} hash[:attributes] = attributes hash[:child] = child.to_h if has? 'Child' hash[:reference] = reference.to_h if has? 'Reference' hash end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-1.0.0 | lib/money_s3/parsers/komponenta_kusovnik_type.rb |