Class: GoogleDrive::ApiClientFetcher::Response
- Inherits:
-
Object
- Object
- GoogleDrive::ApiClientFetcher::Response
- Defined in:
- lib/google_drive/api_client_fetcher.rb
Instance Attribute Summary collapse
-
#client_response ⇒ Object
readonly
Returns the value of attribute client_response.
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/api_client_fetcher.rb', line 15 def initialize(client_response) @client_response = client_response end |
Instance Attribute Details
#client_response ⇒ Object (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
#body ⇒ Object
23 24 25 |
# File 'lib/google_drive/api_client_fetcher.rb', line 23 def body return @client_response.body end |
#code ⇒ Object
19 20 21 |
# File 'lib/google_drive/api_client_fetcher.rb', line 19 def code return @client_response.status.to_s() end |