Class: Seahorse::Client::Plugins::Endpoint::Handler

Inherits:
Handler
  • Object
show all
Defined in:
lib/seahorse/client/plugins/endpoint.rb

Instance Attribute Summary

Attributes inherited from Handler

#handler

Instance Method Summary collapse

Methods inherited from Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Object


45
46
47
48
# File 'lib/seahorse/client/plugins/endpoint.rb', line 45

def call(context)
  context.http_request.endpoint = URI.parse(context.config.endpoint.to_s)
  @handler.call(context)
end