class Seahorse::Client::Plugins::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