Class: BaseDatabase

Inherits:
Object
  • Object
show all
Defined in:
lib/advanced_ruby_command_handler/base.rb

Direct Known Subclasses

AdvancedRubyCommandHandler::Database

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ BaseDatabase

Returns a new instance of BaseDatabase.



9
10
11
# File 'lib/advanced_ruby_command_handler/base.rb', line 9

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



7
8
9
# File 'lib/advanced_ruby_command_handler/base.rb', line 7

def client
  @client
end

Instance Method Details

#optionsObject



17
18
19
# File 'lib/advanced_ruby_command_handler/base.rb', line 17

def options
  @client.hash
end

#to_sObject



13
14
15
# File 'lib/advanced_ruby_command_handler/base.rb', line 13

def to_s
  @client.database.name
end