Exception: DatabaseValidations::Errors::UnsupportedDatabase
- Defined in:
- lib/database_validations/lib/errors.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(method, database) ⇒ UnsupportedDatabase
constructor
A new instance of UnsupportedDatabase.
Methods inherited from Base
Constructor Details
#initialize(method, database) ⇒ UnsupportedDatabase
Returns a new instance of UnsupportedDatabase.
69 70 71 72 73 |
# File 'lib/database_validations/lib/errors.rb', line 69 def initialize(method, database) @database = database @method = method super "Database #{database} doesn't support #{method}" end |
Instance Attribute Details
#database ⇒ Object (readonly)
Returns the value of attribute database.
67 68 69 |
# File 'lib/database_validations/lib/errors.rb', line 67 def database @database end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
67 68 69 |
# File 'lib/database_validations/lib/errors.rb', line 67 def method @method end |