Module: Redash::ClassMethods
- Included in:
- Redash
- Defined in:
- lib/redash.rb
Instance Method Summary collapse
Instance Method Details
#client ⇒ Object
8 9 10 |
# File 'lib/redash.rb', line 8 def client @client ||= Client.new(config) end |
#client=(new_client) ⇒ Object
12 13 14 |
# File 'lib/redash.rb', line 12 def client=(new_client) @client = new_client end |
#config ⇒ Object
16 17 18 |
# File 'lib/redash.rb', line 16 def config @config ||= Configuration.new end |
#configure {|config| ... } ⇒ Object
20 21 22 |
# File 'lib/redash.rb', line 20 def configure yield config end |