Sha256: d760d4b4bd2613ba5fa4e958f3901bcd88b3bdd943bb1b14f9fce9b2e38e6fe7

Contents?: true

Size: 472 Bytes

Versions: 4

Compression:

Stored size: 472 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_with_attrs
        hash = HashWithAttributes.new({}, attributes)

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

        hash
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/seznam_cen_hladin.rb
money_s3-0.9.0 lib/money_s3/parsers/seznam_cen_hladin.rb
money_s3-0.8.0 lib/money_s3/parsers/seznam_cen_hladin.rb
money_s3-0.7.0 lib/money_s3/parsers/seznam_cen_hladin.rb