Class: Desmoservice::Error
- Inherits:
-
Object
- Object
- Desmoservice::Error
- Defined in:
- lib/error.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key, parameter = nil, value = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(key, parameter = nil, value = nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 |
# File 'lib/error.rb', line 5 def initialize(key, parameter = nil, value = nil) @key = key @parameter = parameter @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/error.rb', line 3 def key @key end |
#parameter ⇒ Object (readonly)
Returns the value of attribute parameter.
3 4 5 |
# File 'lib/error.rb', line 3 def parameter @parameter end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/error.rb', line 3 def value @value end |