Sha256: 3714e81374f67b0b5524056e29c47e9b202d45a52932bf38b09d5619f0a27581
Contents?: true
Size: 812 Bytes
Versions: 4
Compression:
Stored size: 812 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/dokl_ref_type' module MoneyS3 module Parsers class KurzRozd include BaseParser def typ at 'Typ' end def preceneni at 'Preceneni' end def castka at 'Castka' end def kr_poradi at 'KRPoradi' end def doklad submodel_at(DoklRefType, 'Doklad') end def to_h_with_attrs hash = HashWithAttributes.new({}, attributes) hash[:typ] = typ if has? 'Typ' hash[:preceneni] = preceneni if has? 'Preceneni' hash[:castka] = castka if has? 'Castka' hash[:kr_poradi] = kr_poradi if has? 'KRPoradi' hash[:doklad] = doklad.to_h_with_attrs if has? 'Doklad' hash end end end end
Version data entries
4 entries across 4 versions & 1 rubygems