Class: GoogleDriveV0::ApiClientFetcher::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/google_drive_v0/api_client_fetcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(client_response) ⇒ Response

Returns a new instance of Response.



15
16
17
# File 'lib/google_drive_v0/api_client_fetcher.rb', line 15

def initialize(client_response)
  @client_response = client_response
end

Instance Method Details

#bodyObject



23
24
25
# File 'lib/google_drive_v0/api_client_fetcher.rb', line 23

def body
  return @client_response.body
end

#codeObject



19
20
21
# File 'lib/google_drive_v0/api_client_fetcher.rb', line 19

def code
  return @client_response.status.to_s()
end