Sha256: f5152fe3c975ddc80bd20f7ac904ebcfdb082f4d33efe8f5db00549988a60245

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/msg_poloz_type'

module MoneyS3
  module Parsers
    class MsgFaktPolozType
      include BaseParser

      def skl_polozka
        submodel_at(MsgPolozType, 'SklPolozka')
      end

      def to_h_with_attrs
        hash = HashWithAttributes.new({}, attributes)

        hash[:skl_polozka] = skl_polozka.to_h_with_attrs if has? 'SklPolozka'

        hash
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/msg_fakt_poloz_type.rb
money_s3-0.9.0 lib/money_s3/parsers/msg_fakt_poloz_type.rb
money_s3-0.8.0 lib/money_s3/parsers/msg_fakt_poloz_type.rb
money_s3-0.7.0 lib/money_s3/parsers/msg_fakt_poloz_type.rb