Class: BaseDatabase
- Inherits:
-
Object
- Object
- BaseDatabase
- Defined in:
- lib/advanced_ruby_command_handler/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ BaseDatabase
constructor
A new instance of BaseDatabase.
- #options ⇒ Object
- #to_s ⇒ Object
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
#client ⇒ Object (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
#options ⇒ Object
17 18 19 |
# File 'lib/advanced_ruby_command_handler/base.rb', line 17 def @client.hash end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/advanced_ruby_command_handler/base.rb', line 13 def to_s @client.database.name end |