Sha256: 5022f22f6e48e5b97e503a1a134027f6d461ef43d5a05e5f7ed0c279795f16a3

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/zasoba'

module MoneyS3
  module Parsers
    class SeznamZasoba
      include BaseParser

      def zasoba
        array_of_at(Zasoba, ['Zasoba'])
      end

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

        hash[:zasoba] = zasoba.map(&:to_h) if has? 'Zasoba'

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