Sha256: c0a66e1fcafb5aa2bcd82d971c072444cfb4f2dc59769461f4461b972e4948f8

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/cenova_hladina'

module MoneyS3
  module Parsers
    class SeznamCenHladin
      include BaseParser

      def cenova_hladina
        array_of_at(CenovaHladina, ['CenovaHladina'])
      end

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

        hash[:cenova_hladina] = cenova_hladina.map(&:to_h) if has? 'CenovaHladina'

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