Module: Scorpio::OpenAPI::Operation::Configurables

Included in:
Scorpio::OpenAPI::Operation
Defined in:
lib/scorpio/openapi/operation.rb

Instance Attribute Summary collapse

Instance Attribute Details

#base_url(scheme: self.scheme, server: self.server, server_variables: self.server_variables) ⇒ Object



11
12
13
14
# File 'lib/scorpio/openapi/operation.rb', line 11

def base_url(scheme: self.scheme, server: self.server, server_variables: self.server_variables)
  return @base_url if instance_variable_defined?(:@base_url)
  openapi_document.base_url(scheme: scheme, server: server, server_variables: server_variables)
end

#faraday_adapterObject



35
36
37
38
# File 'lib/scorpio/openapi/operation.rb', line 35

def faraday_adapter
  return @faraday_adapter if instance_variable_defined?(:@faraday_adapter)
  openapi_document.faraday_adapter
end

#faraday_builderObject



29
30
31
32
# File 'lib/scorpio/openapi/operation.rb', line 29

def faraday_builder
  return @faraday_builder if instance_variable_defined?(:@faraday_builder)
  openapi_document.faraday_builder
end

#loggerObject



41
42
43
44
# File 'lib/scorpio/openapi/operation.rb', line 41

def logger
  return @logger if instance_variable_defined?(:@logger)
  openapi_document.logger
end

#request_headersObject



17
18
19
20
# File 'lib/scorpio/openapi/operation.rb', line 17

def request_headers
  return @request_headers if instance_variable_defined?(:@request_headers)
  openapi_document.request_headers
end

#user_agentObject



23
24
25
26
# File 'lib/scorpio/openapi/operation.rb', line 23

def user_agent
  return @user_agent if instance_variable_defined?(:@user_agent)
  openapi_document.user_agent
end