Exception: Hijacker::InvalidDatabase

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hijacker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database, message = "Database #{database} not found") ⇒ InvalidDatabase

Returns a new instance of InvalidDatabase.



11
12
13
14
# File 'lib/hijacker.rb', line 11

def initialize(database, message = "Database #{database} not found")
  @database = database
  super(message)
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



10
11
12
# File 'lib/hijacker.rb', line 10

def database
  @database
end