Exception: Branchbot::Adapters::UnsupportedDatabase

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/branchbot/adapters/unsupported_database.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(adapter) ⇒ UnsupportedDatabase

Returns a new instance of UnsupportedDatabase.



7
8
9
# File 'lib/branchbot/adapters/unsupported_database.rb', line 7

def initialize(adapter)
  @adapter = adapter
end

Instance Attribute Details

#adapterObject (readonly)

Returns the value of attribute adapter.



5
6
7
# File 'lib/branchbot/adapters/unsupported_database.rb', line 5

def adapter
  @adapter
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/branchbot/adapters/unsupported_database.rb', line 11

def message
  "Adapter `#{adapter}` is not supported."
end