class Distimo::Error
Attributes
code[R]
link[R]
note[R]
Public Class Methods
from_response(response)
click to toggle source
# File lib/distimo/error.rb, line 12 def self.from_response response new(response["code"],response["message"],response["link"]) end
new(code,note,link)
click to toggle source
Calls superclass method
# File lib/distimo/error.rb, line 5 def initialize code,note,link @code = code @note = note @link = link super("Code: #{code}. #{note} See: #{link}") end