Class: Evil::Client::DSL::Files

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

Overview

Nested definition for attached files

Instance Method Summary collapse

Instance Method Details

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

Builds a final upload schema from request options

Parameters:

  • options (Hash<Symbol, Object>)

Returns:

  • (Hash<Symbol, Object>)


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

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