Class: Evil::Client

Inherits:
Object
  • Object
show all
Extended by:
DSL
Defined in:
lib/evil/client/model.rb,
lib/evil/client.rb,
lib/evil/client/dsl.rb,
lib/evil/client/operation.rb,
lib/evil/client/connection.rb,
lib/evil/client/middleware.rb,
lib/evil/client/connection/net_http.rb

Overview

Base structure for models describing parts of requests and responses

The initializer accepts a hash with symbol/string keys, from which it takes and validates necessary options.

The method [#to_h] converts nested data to hash with symbolic keys at any level of nesting.

Defined Under Namespace

Modules: DSL Classes: Connection, Middleware, Model, Operation

Constant Summary

Constants included from DSL

DSL::DEFAULT_MIDDLEWARE

Class Method Summary collapse

Methods included from DSL

base_url, connection, finalize, operation, scope, settings

Class Method Details

.new(*settings) ⇒ Object

Builds a client instance with custom settings



84
85
86
# File 'lib/evil/client.rb', line 84

def self.new(*settings)
  super finalize(*settings)
end