Sha256: e8f1451c25029e0598a0b689eea155c993be499c273d29c455c2c56f00eab82c

Contents?: true

Size: 560 Bytes

Versions: 7

Compression:

Stored size: 560 Bytes

Contents

module MoneyS3
  module Parsers
    class VysledekOdesl
      include ParserCore::BaseParser

      def chyba
        at 'Chyba'
      end

      def chyba_attributes
        attributes_at 'Chyba'
      end

      def varovani
        array_of_at(String, ['Varovani'])
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

        hash[:chyba] = chyba if has? 'Chyba'
        hash[:chyba_attributes] = chyba_attributes if has? 'Chyba'
        hash[:varovani] = varovani if has? 'Varovani'

        hash
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/parsers/vysledek_odesl.rb
money_s3-2.4.0 lib/money_s3/parsers/vysledek_odesl.rb
money_s3-2.3.0 lib/money_s3/parsers/vysledek_odesl.rb
money_s3-2.2.0 lib/money_s3/parsers/vysledek_odesl.rb
money_s3-2.1.0 lib/money_s3/parsers/vysledek_odesl.rb
money_s3-2.0.0 lib/money_s3/parsers/vysledek_odesl.rb
money_s3-1.0.0 lib/money_s3/parsers/vysledek_odesl.rb