Class: EhbrsRubyUtils::WebUtils::Instance::HttpRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/web_utils/instance/http_request.rb

Instance Method Summary collapse

Instance Method Details

#resultEacRest::Response

Returns:

  • (EacRest::Response)


17
18
19
20
21
# File 'lib/ehbrs_ruby_utils/web_utils/instance/http_request.rb', line 17

def result
  r = request.response
  ::EhbrsRubyUtils::WebUtils::RequestError.raise_if_error(r)
  ::Struct.new(:status, :body).new(r.status, ::JSON.parse(r.body_str))
end