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(code, body) ⇒ Response

Returns a new instance of Response.



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

def initialize(code, body)
  @code = code
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



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

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end