Class: ShipEngine::Client
- Inherits:
-
Object
- Object
- ShipEngine::Client
- Defined in:
- lib/shipengine/client.rb
Instance Method Summary collapse
-
#delete(path:, options: {}) ⇒ Object
Perform an HTTP DELETE request.
-
#get(path:, options: {}) ⇒ Object
Perform an HTTP GET request.
- #patch(path:, options: {}) ⇒ Object
-
#post(path:, options: {}) ⇒ Object
Perform an HTTP POST request.
-
#put(path:, options: {}) ⇒ Object
Perform an HTTP PUT request.
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: ) 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: ) 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: ) 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: ) 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: ) end |