Sha256: 9faacc0017d477af1f0aec0d768b8259ca48c05cf008430d795c4becf1c01e68

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/stredisko'

module MoneyS3
  module Parsers
    class SeznamStredisek
      include BaseParser

      def stredisko
        array_of_at(Stredisko, ['Stredisko'])
      end

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

        hash[:stredisko] = stredisko.map(&:to_h) if has? 'Stredisko'

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