Module: Shydra::Response
- Defined in:
- lib/shydra/response.rb
Instance Method Summary collapse
Instance Method Details
#data ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/shydra/response.rb', line 4 def data json = Oj.load(response_body) case response_code when 200 json[request.data_root] else json end end |