Sha256: 8fb7ba385a75db162ae500a758f79f42d31a09683852b07ad8964f51a465c68c

Contents?: true

Size: 676 Bytes

Versions: 2

Compression:

Stored size: 676 Bytes

Contents

module MoneyS3
  module Parsers
    class UcPohybType
      include ParserCore::BaseParser

      def zkrat
        at 'Zkrat'
      end

      def popis
        at 'Popis'
      end

      def typ
        at 'Typ'
      end

      def sloupec
        at 'Sloupec'
      end

      def pozn
        at 'Pozn'
      end

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

        hash[:zkrat] = zkrat if has? 'Zkrat'
        hash[:popis] = popis if has? 'Popis'
        hash[:typ] = typ if has? 'Typ'
        hash[:sloupec] = sloupec if has? 'Sloupec'
        hash[:pozn] = pozn if has? 'Pozn'

        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/uc_pohyb_type.rb
money_s3-0.11.0 lib/money_s3/parsers/uc_pohyb_type.rb