Class: Evil::Client::DSL::Response
- Inherits:
-
Object
- Object
- Evil::Client::DSL::Response
- Extended by:
- Dry::Initializer::Mixin
- Defined in:
- lib/evil/client/dsl/response.rb
Overview
Builds a schema for response processor
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.[](*args) ⇒ Object
11 12 13 |
# File 'lib/evil/client/dsl/response.rb', line 11 def self.[](*args) new(*args).to_h end |
Instance Method Details
#to_h ⇒ Object
15 16 17 |
# File 'lib/evil/client/dsl/response.rb', line 15 def to_h { status: status.to_i, coercer: coercer, raise: raise } end |