Sha256: 8f4e275dda23ccf6310190ba8beda570e23f4466bb7a4b8c798addde2c0fb251

Contents?: true

Size: 471 Bytes

Versions: 4

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

module DeepL
  module Requests
    module Glossary
      class Destroy < Base
        attr_reader :id

        def initialize(api, id, options = {})
          super(api, options)
          @id = id
        end

        def request
          build_response(*delete)
        end

        private

        def build_response(_, _)
          id
        end

        def path
          "glossaries/#{id}"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deepl-rb-2.5.3 lib/deepl/requests/glossary/destroy.rb
deepl-rb-2.5.2 lib/deepl/requests/glossary/destroy.rb
deepl-rb-2.5.1 lib/deepl/requests/glossary/destroy.rb
deepl-rb-2.5.0 lib/deepl/requests/glossary/destroy.rb