Class: HttpClient
- Inherits:
-
Object
- Object
- HttpClient
- Includes:
- HTTParty
- Defined in:
- lib/telerb/utils/http_client.rb
Overview
Class responsability for http services
Instance Method Summary collapse
Instance Method Details
#get(url, options = nil) ⇒ Object
7 8 9 |
# File 'lib/telerb/utils/http_client.rb', line 7 def get(url, = nil) self.class.get(url, query: ) end |
#post(url, options, headers = nil) ⇒ Object
11 12 13 |
# File 'lib/telerb/utils/http_client.rb', line 11 def post(url, , headers = nil) self.class.post(url, body: , headers: headers) end |