Class: ZAWS::Newrelicapi::NewrelicCreds::Creds
- Inherits:
-
Object
- Object
- ZAWS::Newrelicapi::NewrelicCreds::Creds
- Defined in:
- lib/zaws/external/newrelicapi/newrelic_creds.rb
Overview
Simple container for credentials
Direct Known Subclasses
Defined Under Namespace
Classes: YamlFile
Instance Method Summary collapse
- #api_key ⇒ Object
-
#initialize(newrelic_url, api_key) ⇒ Creds
constructor
A new instance of Creds.
- #url ⇒ Object
Constructor Details
#initialize(newrelic_url, api_key) ⇒ Creds
Returns a new instance of Creds.
11 12 13 14 15 |
# 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 |
Instance Method Details
#api_key ⇒ Object
21 22 23 |
# File 'lib/zaws/external/newrelicapi/newrelic_creds.rb', line 21 def api_key fetch_creds[:api_key] end |
#url ⇒ Object
17 18 19 |
# File 'lib/zaws/external/newrelicapi/newrelic_creds.rb', line 17 def url fetch_creds[:url] end |