Class: RTS::Request
- Inherits:
-
Object
- Object
- RTS::Request
- Defined in:
- lib/rts/request.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#get(url) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rts/request.rb', line 7 def get(url) data = RestClient::Request.execute( method: :get, url: request_url(url), headers: headers, ssl_client_cert: ssl_client_certificate, ssl_client_key: ssl_client_key ) JSON.parse(data) rescue RestClient::Exception => e RTS::Error.on_complete(e) end |