Sha256: 2750992e5b3483a533570b06ff966949ef154ccef01bf1679ba934e28f843ce9

Contents?: true

Size: 702 Bytes

Versions: 1

Compression:

Stored size: 702 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class UcPohybType
      include 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
        hash = WithAttributes.new({})
        hash.attributes = 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

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.6.0 lib/money_s3/parsers/uc_pohyb_type.rb