class DropboxApiV2::Response

Attributes

raw_response[R]

Public Class Methods

new(curl_response) click to toggle source
# File lib/dropbox_api_v2/response.rb, line 6
def initialize(curl_response)
  @raw_response = curl_response
end

Public Instance Methods

body() click to toggle source
# File lib/dropbox_api_v2/response.rb, line 14
def body
  @raw_response.body
end
cursor() click to toggle source
# File lib/dropbox_api_v2/response.rb, line 18
def cursor
  json["cursor"]
end
json() click to toggle source
# File lib/dropbox_api_v2/response.rb, line 10
def json
  JSON.parse(body)
end