Class: Redash::Client
- Inherits:
-
Object
- Object
- Redash::Client
- Defined in:
- lib/redash/client.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #connection ⇒ Object
-
#get(uri, params = {}) ⇒ Object
for recent API, please check the follwings github.com/getredash/redash/blob/master/redash/handlers/api.py.
-
#initialize(config) ⇒ Client
constructor
A new instance of Client.
- #queries ⇒ Object
Constructor Details
#initialize(config) ⇒ Client
Returns a new instance of Client.
12 13 14 |
# File 'lib/redash/client.rb', line 12 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
10 11 12 |
# File 'lib/redash/client.rb', line 10 def config @config end |
Instance Method Details
#connection ⇒ Object
22 23 24 |
# File 'lib/redash/client.rb', line 22 def connection @connection ||= build_connection end |
#get(uri, params = {}) ⇒ Object
for recent API, please check the follwings github.com/getredash/redash/blob/master/redash/handlers/api.py
18 19 20 |
# File 'lib/redash/client.rb', line 18 def get(uri, params = {}) connection.get(uri, params) end |