class Xhash::Error

Attributes

message[R]
response[R]

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method
# File lib/xhash/error.rb, line 5
def initialize(options = {})
  if options.is_a? Hash
    @message = options[:message]
    @response = options[:response]
  else
    @message = "Server error"
    @response = options
  end

  super
end