Sha256: 019a494ef84645066fe11fec8a3b3d66171b7cefa48475f97154ec4a5b8894c2

Contents?: true

Size: 423 Bytes

Versions: 1

Compression:

Stored size: 423 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/zakazka'

module MoneyS3
  module Parsers
    class SeznamZakazka
      include BaseParser

      def zakazka
        array_of_at(Zakazka, ['Zakazka'])
      end

      def to_h
        hash = WithAttributes.new({})
        hash.attributes = attributes

        hash[:zakazka] = zakazka.map(&:to_h) if has? 'Zakazka'

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.6.0 lib/money_s3/parsers/seznam_zakazka.rb