Exception: CC::Service::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- CC::Service::HTTPError
- Defined in:
- lib/cc/service/response_check.rb
Instance Attribute Summary collapse
-
#endpoint_url ⇒ Object
readonly
Returns the value of attribute endpoint_url.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#user_message ⇒ Object
Returns the value of attribute user_message.
Instance Method Summary collapse
-
#initialize(message, env) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(message, env) ⇒ HTTPError
Returns a new instance of HTTPError.
6 7 8 9 10 11 12 13 |
# File 'lib/cc/service/response_check.rb', line 6 def initialize(, env) @response_body = env[:body] @status = env[:status] @params = env[:params] @endpoint_url = env[:url].to_s super() end |
Instance Attribute Details
#endpoint_url ⇒ Object (readonly)
Returns the value of attribute endpoint_url.
3 4 5 |
# File 'lib/cc/service/response_check.rb', line 3 def endpoint_url @endpoint_url end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/cc/service/response_check.rb', line 3 def params @params end |
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
3 4 5 |
# File 'lib/cc/service/response_check.rb', line 3 def response_body @response_body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/cc/service/response_check.rb', line 3 def status @status end |
#user_message ⇒ Object
Returns the value of attribute user_message.
4 5 6 |
# File 'lib/cc/service/response_check.rb', line 4 def @user_message end |