Sha256: 6be76cfac2ceafb74a0bc3eea4c4c98b7f469a43a06d9c91455befd7ff7f48fa

Contents?: true

Size: 431 Bytes

Versions: 1

Compression:

Stored size: 431 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/prevodka'

module MoneyS3
  module Parsers
    class SeznamPrevodka
      include BaseParser

      def prevodka
        array_of_at(Prevodka, ['Prevodka'])
      end

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

        hash[:prevodka] = prevodka.map(&:to_h) if has? 'Prevodka'

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