Sha256: befcfcb4eedeebab2e4ea7ccc5644c7491471351ad5a148ea5e521e2ae9f5fbc

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

module MoneyS3
  module Parsers
    class SeznamCenHladin
      include ParserCore::BaseParser

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

      def to_h_with_attrs
        hash = ParserCore::HashWithAttributes.new({}, attributes)

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

        hash
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/parsers/seznam_cen_hladin.rb
money_s3-0.11.0 lib/money_s3/parsers/seznam_cen_hladin.rb