Class: CASServer::Models::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ Error

Returns a new instance of Error.



98
99
100
101
# File 'lib/casserver/models.rb', line 98

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



96
97
98
# File 'lib/casserver/models.rb', line 96

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



96
97
98
# File 'lib/casserver/models.rb', line 96

def message
  @message
end

Instance Method Details

#to_sObject



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

def to_s
  message
end