class Seahorse::Client::Plugins::Endpoint
port. When the scheme is not set it defaults to ‘https`.
This must include the host. It may also include the scheme and
’example.com:123’
‘example.com’
‘example.com’
‘example.com’
For example:
The HTTP or HTTPS endpoint to send requests to.
@seahorse.client.option [String] :endpoint
def after_initialize(client)
def after_initialize(client) endpoint = URI.parse(client.config.endpoint.to_s) if URI::HTTPS === endpoint or URI::HTTP === endpoint client.config.endpoint = endpoint else msg = 'expected :endpoint to be a HTTP or HTTPS endpoint' raise ArgumentError, msg end end