Class: OSA::HttpClient
- Inherits:
-
Object
show all
- Defined in:
- lib/osa/clients/http_client.rb
Instance Method Summary
collapse
Constructor Details
#initialize(connection) ⇒ HttpClient
4
5
6
|
# File 'lib/osa/clients/http_client.rb', line 4
def initialize(connection)
@connection = connection
end
|
Instance Method Details
#delete(*args, **kwargs) ⇒ Object
18
19
20
21
|
# File 'lib/osa/clients/http_client.rb', line 18
def delete(*args, **kwargs)
response = @connection.delete(*args, **kwargs)
handle_response(response)
end
|
#get(*args, **kwargs) ⇒ Object
8
9
10
11
|
# File 'lib/osa/clients/http_client.rb', line 8
def get(*args, **kwargs)
response = @connection.get(*args, **kwargs)
handle_response(response)
end
|
#patch(*args, **kwargs) ⇒ Object
23
24
25
26
|
# File 'lib/osa/clients/http_client.rb', line 23
def patch(*args, **kwargs)
response = @connection.patch(*args, **kwargs)
handle_response(response)
end
|
#post(*args, **kwargs) ⇒ Object
13
14
15
16
|
# File 'lib/osa/clients/http_client.rb', line 13
def post(*args, **kwargs)
response = @connection.post(*args, **kwargs)
handle_response(response)
end
|