Sha256: 624dbfaf5e745219750132835fec6f84987bbedcfc33d478088154ca44bce728

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class Doklad
      include BaseParser

      def druh
        at :Druh
      end

      def cislo
        at :Cislo
      end

      def guid
        at :GUID
      end

      def prijat_dokl
        at :PrijatDokl
      end

      def var_symbol
        at :VarSymbol
      end

      def vystaveno
        at :Vystaveno
      end

      def dat_uc_pr
        at :DatUcPr
      end

      def plneno_dph
        at :PlnenoDPH
      end

      def to_h
        hash = {}

        hash[:druh] = druh if raw.key? :Druh
        hash[:cislo] = cislo if raw.key? :Cislo
        hash[:guid] = guid if raw.key? :GUID
        hash[:prijat_dokl] = prijat_dokl if raw.key? :PrijatDokl
        hash[:var_symbol] = var_symbol if raw.key? :VarSymbol
        hash[:vystaveno] = vystaveno if raw.key? :Vystaveno
        hash[:dat_uc_pr] = dat_uc_pr if raw.key? :DatUcPr
        hash[:plneno_dph] = plneno_dph if raw.key? :PlnenoDPH

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.5.0 lib/money_s3/parsers/doklad.rb