Module: RestClient::Response
- Defined in:
- lib/poweriq_client/response.rb
Instance Method Summary collapse
Instance Method Details
#json ⇒ Object
4 5 6 7 8 9 |
# File 'lib/poweriq_client/response.rb', line 4 def json if(!@json && headers[:content_type]=~%r{application/json} && !body.nil? && body.size>0) @json = ActiveSupport::JSON.decode(body) end @json end |