Exception: Cortex::Exceptions::ConnectionFailed
- Inherits:
-
ApiError
- Object
- StandardError
- CortexError
- ApiError
- Cortex::Exceptions::ConnectionFailed
- Defined in:
- lib/cortex/exceptions.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(base_url = "http://api.cbcortex.com/api/v1/", message = nil, http_status = 599) ⇒ ConnectionFailed
constructor
A new instance of ConnectionFailed.
Constructor Details
#initialize(base_url = "http://api.cbcortex.com/api/v1/", message = nil, http_status = 599) ⇒ ConnectionFailed
Returns a new instance of ConnectionFailed.
30 31 32 33 |
# File 'lib/cortex/exceptions.rb', line 30 def initialize(base_url = "http://api.cbcortex.com/api/v1/", = nil, http_status = 599) @base_url = base_url super(message: , http_status: http_status) end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
29 30 31 |
# File 'lib/cortex/exceptions.rb', line 29 def base_url @base_url end |