Class: GoogleDriveV0::ApiClientFetcher::Response
- Inherits:
-
Object
- Object
- GoogleDriveV0::ApiClientFetcher::Response
- Defined in:
- lib/google_drive_v0/api_client_fetcher.rb
Instance Method Summary collapse
- #body ⇒ Object
- #code ⇒ Object
-
#initialize(client_response) ⇒ Response
constructor
A new instance of Response.
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
#body ⇒ Object
23 24 25 |
# File 'lib/google_drive_v0/api_client_fetcher.rb', line 23 def body return @client_response.body end |
#code ⇒ Object
19 20 21 |
# File 'lib/google_drive_v0/api_client_fetcher.rb', line 19 def code return @client_response.status.to_s() end |