class Tinycert::Error
Attributes
response[R]
Public Class Methods
new(response)
click to toggle source
Calls superclass method
# File lib/tinycert/error.rb, line 4 def initialize response error = JSON.parse response.body name = error['code'] description = error['text'] super "#{name} - #{description}" @response = response end
Public Instance Methods
message()
click to toggle source
# File lib/tinycert/error.rb, line 14 def message "#{@response.code}: #{super}" end