Class: DruidClient::Cli
- Inherits:
-
Object
- Object
- DruidClient::Cli
- Defined in:
- lib/druid_client/cli.rb,
lib/druid_client/cli/sql.rb
Defined Under Namespace
Classes: Sql
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(options: {}) ⇒ Cli
constructor
A new instance of Cli.
- #sql ⇒ Object
Constructor Details
#initialize(options: {}) ⇒ Cli
Returns a new instance of Cli.
8 9 10 |
# File 'lib/druid_client/cli.rb', line 8 def initialize(options: {}) = end |
Instance Method Details
#client ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/druid_client/cli.rb', line 16 def client @client ||= DruidClient::Api.new( url: [:url], username: [:username], password: [:password], ) end |
#sql ⇒ Object
12 13 14 |
# File 'lib/druid_client/cli.rb', line 12 def sql @sql ||= Cli::Sql.new(parent: self) end |