Class: NodataMonitor::Credential

Inherits:
Object
  • Object
show all
Defined in:
lib/nodata-monitor.rb

Instance Method Summary collapse

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

#clientObject



10
11
12
# File 'lib/nodata-monitor.rb', line 10

def client
  @client ||= Dogapi::Client.new(@api_key, @app_key)
end