Sha256: 663978da11bf53f1b7c07224ee63f7327ac1c32d07465adaf6eb437570861db6

Contents?: true

Size: 737 Bytes

Versions: 1

Compression:

Stored size: 737 Bytes

Contents

require 'money_s3/base_element'

module MoneyS3
  class Doklad
    include BaseElement

    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
      { druh: druh,
        cislo: cislo,
        guid: guid,
        prijat_dokl: prijat_dokl,
        var_symbol: var_symbol,
        vystaveno: vystaveno,
        dat_uc_pr: dat_uc_pr,
        plneno_dph: plneno_dph
      }.delete_if { |k, v| v.nil? || v.empty? }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.3.0 lib/money_s3/doklad.rb