Sha256: 9fb7467416abc50667f6759fdbad311bbaea6e5864a7ba9f5bbcdcfdd38b6b5c

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class StavZasobyType
      include BaseParser

      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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/parsers/stav_zasoby_type.rb