Exception: GrandIdSimple::Error
- Inherits:
-
StandardError
- Object
- StandardError
- GrandIdSimple::Error
- Defined in:
- lib/grand_id_simple.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message) ⇒ Error
Returns a new instance of Error.
13 14 15 16 |
# File 'lib/grand_id_simple.rb', line 13 def initialize(code, ) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
11 12 13 |
# File 'lib/grand_id_simple.rb', line 11 def code @code end |