Class: WSDL::Request::DSLContext::SecurityDSLContext
- Inherits:
- BasicObject
- Defined in:
- lib/wsdl/request/dsl_context.rb
Overview
Nested WS-Security DSL context using implicit receiver.
Instance Method Summary collapse
-
#initialize(config) ⇒ SecurityDSLContext
constructor
A new instance of SecurityDSLContext.
-
#method_missing(name) ⇒ Object
Forwards known WS-Security DSL calls to the backing security config.
-
#respond_to_missing?(name, include_private = false) ⇒ Boolean
:nocov: Required by RuboCop but unreachable — BasicObject has no respond_to? to trigger this.
Constructor Details
#initialize(config) ⇒ SecurityDSLContext
Returns a new instance of SecurityDSLContext.
320 321 322 |
# File 'lib/wsdl/request/dsl_context.rb', line 320 def initialize(config) @config = config end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
Forwards known WS-Security DSL calls to the backing security config.
329 330 331 332 333 334 335 |
# File 'lib/wsdl/request/dsl_context.rb', line 329 def method_missing(name, ...) unless @config.respond_to?(name) ::Kernel.raise ::WSDL::RequestDslError, "Unknown ws_security DSL method #{name.inspect}" end @config.public_send(name, ...) end |
Instance Method Details
#respond_to_missing?(name, include_private = false) ⇒ Boolean
:nocov: Required by RuboCop but unreachable — BasicObject has no respond_to? to trigger this.
339 340 341 |
# File 'lib/wsdl/request/dsl_context.rb', line 339 def respond_to_missing?(name, include_private = false) @config.respond_to?(name, include_private) end |