Class: Foraneus::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/foraneus/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



3
4
5
# File 'lib/foraneus/errors.rb', line 3

def key
  @key
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



3
4
5
# File 'lib/foraneus/errors.rb', line 3

def message
  @message
end

Instance Method Details

#to_sObject



4
5
6
# File 'lib/foraneus/errors.rb', line 4

def to_s
  "#{key} - #{message}"
end