class Wakatime::WakatimeError
Attributes
body[RW]
status[RW]
Public Class Methods
new(error_json, status, body)
click to toggle source
# File lib/wakatime/exceptions.rb, line 5 def initialize(error_json, status, body) @status = status @body = body @error_json = error_json end
Public Instance Methods
[](key)
click to toggle source
# File lib/wakatime/exceptions.rb, line 11 def [](key) @error_json[key] end
message()
click to toggle source
# File lib/wakatime/exceptions.rb, line 15 def message [@error_json["errors"].join(" ")].join("\n") end