Method: FitbitClient::Error#to_s

Defined in:
lib/fitbit_client/error.rb

#to_sObject



16
17
18
19
20
21
22
# File 'lib/fitbit_client/error.rb', line 16

def to_s
  if response
    "#{@message}, HTTP_STATUS: #{response.status}, HTTP_BODY: #{response.body}, HTTP_URL: #{response.response.env.url}"
  else
    @message.to_s
  end
end