Class: OmniauthOpenidFederation::HttpError
- Defined in:
- lib/omniauth_openid_federation/http_errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(status, message = nil, response = nil) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(status, message = nil, response = nil) ⇒ HttpError
Returns a new instance of HttpError.
5 6 7 8 |
# File 'lib/omniauth_openid_federation/http_errors.rb', line 5 def initialize(status, = nil, response = nil) @response = response super( || "HTTP error #{status}") end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/omniauth_openid_federation/http_errors.rb', line 3 def response @response end |