Class: ShipEngine::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/shipengine/client.rb

Instance Method Summary collapse

Instance Method Details

#delete(path:, options: {}) ⇒ Object

Perform an HTTP DELETE request



29
30
31
# File 'lib/shipengine/client.rb', line 29

def delete(path:, options: {})
  request(method: :delete, path: path, options: options)
end

#get(path:, options: {}) ⇒ Object

Perform an HTTP GET request



10
11
12
# File 'lib/shipengine/client.rb', line 10

def get(path:, options: {})
  request(method: :get, path: path, options: options)
end

#patch(path:, options: {}) ⇒ Object



24
25
26
# File 'lib/shipengine/client.rb', line 24

def patch(path:, options: {})
  request(method: :patch, path: path, options: options)
end

#post(path:, options: {}) ⇒ Object

Perform an HTTP POST request



15
16
17
# File 'lib/shipengine/client.rb', line 15

def post(path:, options: {})
  request(method: :post, path: path, options: options)
end

#put(path:, options: {}) ⇒ Object

Perform an HTTP PUT request



20
21
22
# File 'lib/shipengine/client.rb', line 20

def put(path:, options: {})
  request(method: :put, path: path, options: options)
end