Class: AdvancedRubyCommandHandler::Database

Inherits:
BaseDatabase show all
Defined in:
lib/advanced_ruby_command_handler/database.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseDatabase

#options, #to_s

Constructor Details

#initialize(path) ⇒ Database

Returns a new instance of Database.



10
11
12
13
14
# File 'lib/advanced_ruby_command_handler/database.rb', line 10

def initialize(path)
  @path = path
  @client = Mongo::Client.new(path)
  super(@client)
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



8
9
10
# File 'lib/advanced_ruby_command_handler/database.rb', line 8

def client
  @client
end

#pathObject

Returns the value of attribute path.



8
9
10
# File 'lib/advanced_ruby_command_handler/database.rb', line 8

def path
  @path
end