Class: GoogleDrive::ApiClientFetcher::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_response) ⇒ Response

Returns a new instance of Response.



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

def initialize(client_response)
  @client_response = client_response
end

Instance Attribute Details

#client_responseObject (readonly)

Returns the value of attribute client_response.



27
28
29
# File 'lib/google_drive/api_client_fetcher.rb', line 27

def client_response
  @client_response
end

Instance Method Details

#bodyObject



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

def body
  return @client_response.body
end

#codeObject



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

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