Class: Evil::Client::DSL::Security

Inherits:
Object
  • Object
show all
Defined in:
lib/evil/client/dsl/security.rb

Overview

Nested definition for a security schemas

Instance Method Summary collapse

Instance Method Details

#call(**options) ⇒ Hash<Symbol, Object>

Builds final security schema dependent on request options

Parameters:

  • options (Hash<Symbol, Object>)

Returns:

  • (Hash<Symbol, Object>)


9
10
11
12
13
14
15
# File 'lib/evil/client/dsl/security.rb', line 9

def call(**options)
  @mutex.synchronize do
    @schema = {}
    instance_exec(options, &@block)
    @schema
  end
end