Sha256: 6a5a1a7b38b3ad18faf5958390773bdb742659f08d860729a9d0973f9f1a0f70

Contents?: true

Size: 876 Bytes

Versions: 7

Compression:

Stored size: 876 Bytes

Contents

module MoneyS3
  module Parsers
    class StrediskoType
      include ParserCore::BaseParser

      def zkrat
        at 'Zkrat'
      end

      def zkrat_attributes
        attributes_at 'Zkrat'
      end

      def nazev
        at 'Nazev'
      end

      def nazev_attributes
        attributes_at 'Nazev'
      end

      def pozn
        at 'Pozn'
      end

      def pozn_attributes
        attributes_at 'Pozn'
      end

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

        hash[:zkrat] = zkrat if has? 'Zkrat'
        hash[:zkrat_attributes] = zkrat_attributes if has? 'Zkrat'
        hash[:nazev] = nazev if has? 'Nazev'
        hash[:nazev_attributes] = nazev_attributes if has? 'Nazev'
        hash[:pozn] = pozn if has? 'Pozn'
        hash[:pozn_attributes] = pozn_attributes if has? 'Pozn'

        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/stredisko_type.rb
money_s3-2.4.0 lib/money_s3/parsers/stredisko_type.rb
money_s3-2.3.0 lib/money_s3/parsers/stredisko_type.rb
money_s3-2.2.0 lib/money_s3/parsers/stredisko_type.rb
money_s3-2.1.0 lib/money_s3/parsers/stredisko_type.rb
money_s3-2.0.0 lib/money_s3/parsers/stredisko_type.rb
money_s3-1.0.0 lib/money_s3/parsers/stredisko_type.rb