Exception: KazeClient::Error::NoEndpoint
- Defined in:
- lib/kaze_client/error/no_endpoint.rb
Overview
An error raised when the base URL given to the KazeClient::Client
is nil
Constant Summary
Constants inherited from Generic
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
The given base URL.
Attributes inherited from Generic
Instance Method Summary collapse
-
#initialize(base_url) ⇒ NoEndpoint
constructor
A new instance of NoEndpoint.
Constructor Details
#initialize(base_url) ⇒ NoEndpoint
Returns a new instance of NoEndpoint.
15 16 17 18 19 |
# File 'lib/kaze_client/error/no_endpoint.rb', line 15 def initialize(base_url) super(status: nil, message: "Invalid base url +#{base_url}+", error: nil) @base_url = base_url end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the given base URL.
13 14 15 |
# File 'lib/kaze_client/error/no_endpoint.rb', line 13 def base_url @base_url end |