Sha256: 926610ab2fd0ee77792026051385d159c714a1ae29bde3c2177b6709bf51e3da

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/cinnost'

module MoneyS3
  module Parsers
    class SeznamCinnosti
      include BaseParser

      def cinnost
        array_of_at(Cinnost, ['Cinnost'])
      end

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

        hash[:cinnost] = cinnost.map(&:to_h) if has? 'Cinnost'

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