Sha256: f33ba480964752c332dc63c457f9a4888c5b0a4bfe6a23d1da5f825274343ca7

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 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 = {}

        hash[:zasoba] = zasoba.map(&:to_h) if raw.key? :Zasoba

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.5.0 lib/money_s3/parsers/seznam_zasoba.rb