Class: Threadfix::Client::Configuration
- Inherits:
-
Object
- Object
- Threadfix::Client::Configuration
- Defined in:
- lib/threadfix/client.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 |
# File 'lib/threadfix/client.rb', line 18 def initialize @host = ENV['THREADFIX_HOST'] @key = ENV['THREADFIX_TOKEN'] end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
16 17 18 |
# File 'lib/threadfix/client.rb', line 16 def host @host end |
#key ⇒ Object
Returns the value of attribute key.
16 17 18 |
# File 'lib/threadfix/client.rb', line 16 def key @key end |