class Rancher::Shell::ApiResponse

Public Class Methods

new(http_response) click to toggle source
# File lib/rancher/shell/api_response.rb, line 6
def initialize http_response
  @http_response = http_response
end

Public Instance Methods

body() click to toggle source
# File lib/rancher/shell/api_response.rb, line 10
def body
  @http_response.body
end
json() click to toggle source
# File lib/rancher/shell/api_response.rb, line 14
def json
  JSON.parse body
end