class ZAWS::Newrelicapi::NewrelicCreds::Creds
Simple container for credentials
Public Class Methods
new(newrelic_url, api_key)
click to toggle source
@param [String] newrelic_url @param [String] api_key
# File lib/zaws/external/newrelicapi/newrelic_creds.rb, line 11 def initialize(newrelic_url, api_key) @creds = {} @creds[:url] = newrelic_url @creds[:api_key] = api_key end
Public Instance Methods
api_key()
click to toggle source
# File lib/zaws/external/newrelicapi/newrelic_creds.rb, line 21 def api_key fetch_creds[:api_key] end
url()
click to toggle source
# File lib/zaws/external/newrelicapi/newrelic_creds.rb, line 17 def url fetch_creds[:url] end
Private Instance Methods
fetch_creds()
click to toggle source
# File lib/zaws/external/newrelicapi/newrelic_creds.rb, line 27 def fetch_creds # Nothing to do in the base class @creds end