Class: Hextech::Response
- Inherits:
-
Object
- Object
- Hextech::Response
- Defined in:
- lib/hextech/response.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(response, response_class) ⇒ Response
constructor
A new instance of Response.
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
#call ⇒ Object
11 12 13 14 |
# File 'lib/hextech/response.rb', line 11 def call parse_response .then { wrap_response(_1) } end |