Exception: Little::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Little::Error
- Defined in:
- lib/little/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(code, data) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, data) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/little/error.rb', line 4 def initialize(code, data) @code = code @data = data end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/little/error.rb', line 3 def code @code end |
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/little/error.rb', line 3 def data @data end |