Class: Hextech::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/hextech/response.rb

Instance Method Summary collapse

Constructor Details

#initialize(response, response_class) ⇒ Response

Returns a new instance of Response.



6
7
8
9
# File 'lib/hextech/response.rb', line 6

def initialize(response, response_class)
  @response = response
  @response_class = response_class
end

Instance Method Details

#callObject



11
12
13
14
# File 'lib/hextech/response.rb', line 11

def call
  parse_response
    .then { wrap_response(_1) }
end