Class: NodataMonitor::Credential
- Inherits:
-
Object
- Object
- NodataMonitor::Credential
- Defined in:
- lib/nodata-monitor.rb
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(api_key, app_key) ⇒ Credential
constructor
A new instance of Credential.
Constructor Details
#initialize(api_key, app_key) ⇒ Credential
Returns a new instance of Credential.
5 6 7 8 |
# File 'lib/nodata-monitor.rb', line 5 def initialize api_key, app_key @api_key = api_key @app_key = app_key end |
Instance Method Details
#client ⇒ Object
10 11 12 |
# File 'lib/nodata-monitor.rb', line 10 def client @client ||= Dogapi::Client.new(@api_key, @app_key) end |