Module: Airborne
- Defined in:
- lib/spaceborne.rb
Defined Under Namespace
Modules: PathMatcher, RequestExpectations, RestClientRequester
Instance Method Summary collapse
Instance Method Details
#json_body ⇒ Object
24 25 26 27 28 |
# File 'lib/spaceborne.rb', line 24 def json_body @json_body ||= JSON.parse(response.body, symbolize_names: true) rescue fail InvalidJsonError, 'Api request returned invalid json' end |