Sha256: 3efd8910ef8091805024f81327e64230476e22195ec3850abf3cc958480c038e

Contents?: true

Size: 423 Bytes

Versions: 1

Compression:

Stored size: 423 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/vyrobka'

module MoneyS3
  module Parsers
    class SeznamVyrobka
      include BaseParser

      def vyrobka
        array_of_at(Vyrobka, ['Vyrobka'])
      end

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

        hash[:vyrobka] = vyrobka.map(&:to_h) if has? 'Vyrobka'

        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_vyrobka.rb