Class: HornOfPlenty::Adapters::Github::Response

Inherits:
Response
  • Object
show all
Defined in:
lib/horn_of_plenty/adapters/github/response.rb

Instance Attribute Summary

Attributes inherited from Response

#raw_response

Instance Method Summary collapse

Methods inherited from Response

#body, #initialize, #items, parse, #result, #status_code, #status_message, #successful?

Constructor Details

This class inherits a constructor from HornOfPlenty::Response

Instance Method Details

#errorObject



9
10
11
12
# File 'lib/horn_of_plenty/adapters/github/response.rb', line 9

def error
  Github::Error.lookup(status_code,
                       status_message)
end