This is just a simple
# File lib/oauth/models/consumers/simple_client.rb, line 18 18: def delete(path) 19: parse(token.delete(path, {'Accept' => 'application/json'})) 20: end
# File lib/oauth/models/consumers/simple_client.rb, line 26 26: def get(path) 27: parse(token.get(path, {'Accept' => 'application/json'})) 28: end
# File lib/oauth/models/consumers/simple_client.rb, line 32 32: def parse(response) 33: return false unless response 34: if ["200","201"].include? response.code 35: unless response.body.blank? 36: JSON.parse(response.body) 37: else 38: true 39: end 40: else 41: logger.debug "Got Response code: #{response.code}" 42: false 43: end 44: 45: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.