Sha256: 32a16267b93565f2204a98d9cfd77f09655d5c5f00c51d092377cf332cd0ddeb

Contents?: true

Size: 608 Bytes

Versions: 7

Compression:

Stored size: 608 Bytes

Contents

module MoneyS3
  module Parsers
    class DefSubPolType
      include ParserCore::BaseParser

      def mj_na_sadu
        at 'MJNaSadu'
      end

      def mj_na_sadu_attributes
        attributes_at 'MJNaSadu'
      end

      def polozka
        submodel_at(PolSklDoklType, 'Polozka')
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

        hash[:mj_na_sadu] = mj_na_sadu if has? 'MJNaSadu'
        hash[:mj_na_sadu_attributes] = mj_na_sadu_attributes if has? 'MJNaSadu'
        hash[:polozka] = polozka.to_h if has? 'Polozka'

        hash
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/parsers/def_sub_pol_type.rb
money_s3-2.4.0 lib/money_s3/parsers/def_sub_pol_type.rb
money_s3-2.3.0 lib/money_s3/parsers/def_sub_pol_type.rb
money_s3-2.2.0 lib/money_s3/parsers/def_sub_pol_type.rb
money_s3-2.1.0 lib/money_s3/parsers/def_sub_pol_type.rb
money_s3-2.0.0 lib/money_s3/parsers/def_sub_pol_type.rb
money_s3-1.0.0 lib/money_s3/parsers/def_sub_pol_type.rb