Method: Toolshed::Client.request
- Defined in:
- lib/toolshed/client.rb
.request(method, path, options) ⇒ Object
214 215 216 217 218 219 220 221 222 |
# File 'lib/toolshed/client.rb', line 214 def self.request(method, path, ) response = HTTParty.send(method, "#{base_uri}#{path}", .merge()) if response.code == 401 raise AuthenticationFailed end response end |