Sha256: fa6f89dd30ae86d59a11cb76a25602c391db42f6fed3f50554836e67979e144d

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

require 'money_s3/base_element'

module MoneyS3
  class StavZasobyType
    include BaseElement

    def zasoba
      at :Zasoba
    end

    def rezervace
      at :Rezervace
    end

    def objednano
      at :Objednano
    end

    def to_h
      { zasoba: zasoba,
        rezervace: rezervace,
        objednano: objednano
      }.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/stav_zasoby_type.rb