Sha256: 01290a4ee178f76913749f77685b144fec718093d1807917b189880a2c8f81d8
Contents?: true
Size: 301 Bytes
Versions: 3
Compression:
Stored size: 301 Bytes
Contents
# frozen_string_literal: true module NRQL2Nerd class Config attr_accessor :api_key, :account_id def initialize(api_key = nil, account_id = nil) @api_key = api_key || ENV.fetch("NEW_RELIC_API_KEY") @account_id = account_id || ENV.fetch("NEW_RELIC_ACCOUNT_ID") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nrql2nerd-0.1.2 | lib/nrql2nerd/config.rb |
nrql2nerd-0.1.1a | lib/nrql2nerd/config.rb |
nrql2nerd-0.1.1 | lib/nrql2nerd/config.rb |