Class: AdvancedRubyCommandHandler::Database
- Inherits:
-
BaseDatabase
- Object
- BaseDatabase
- AdvancedRubyCommandHandler::Database
- Defined in:
- lib/advanced_ruby_command_handler/database.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Database
constructor
A new instance of Database.
Methods inherited from BaseDatabase
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
#client ⇒ Object
Returns the value of attribute client.
8 9 10 |
# File 'lib/advanced_ruby_command_handler/database.rb', line 8 def client @client end |
#path ⇒ Object
Returns the value of attribute path.
8 9 10 |
# File 'lib/advanced_ruby_command_handler/database.rb', line 8 def path @path end |