Class: CASServer::Model::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/casserver/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ Error

Returns a new instance of Error.



103
104
105
106
# File 'lib/casserver/model.rb', line 103

def initialize(code, message)
  @code = code
  @message = message
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



101
102
103
# File 'lib/casserver/model.rb', line 101

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



101
102
103
# File 'lib/casserver/model.rb', line 101

def message
  @message
end

Instance Method Details

#to_sObject



108
109
110
# File 'lib/casserver/model.rb', line 108

def to_s
  message
end