Module: Datalab::ResponseMethods
- Defined in:
- lib/datalab/response_methods.rb
Overview
The ResponseMethods module extends a Faraday reponse, adding the result
method.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.install(response, result) ⇒ Object
6 7 8 9 |
# File 'lib/datalab/response_methods.rb', line 6 def self.install( response, result ) response.instance_variable_set( "@_datalab_result", result ) response.extend( ResponseMethods ) end |
Instance Method Details
#result ⇒ Object
11 12 13 |
# File 'lib/datalab/response_methods.rb', line 11 def result @_datalab_result end |