Class: GetFluxly::Rails::Configuration
- Inherits:
-
Object
- Object
- GetFluxly::Rails::Configuration
- Defined in:
- lib/getfluxly/rails.rb
Instance Attribute Summary collapse
-
#api_host ⇒ Object
Returns the value of attribute api_host.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 |
# File 'lib/getfluxly/rails.rb', line 14 def initialize @token = ENV.fetch("GFLUX_SERVER_TOKEN", nil) @api_host = ENV.fetch("GFLUX_API_HOST", GetFluxly::Client::DEFAULT_API_HOST) end |
Instance Attribute Details
#api_host ⇒ Object
Returns the value of attribute api_host.
12 13 14 |
# File 'lib/getfluxly/rails.rb', line 12 def api_host @api_host end |
#token ⇒ Object
Returns the value of attribute token.
12 13 14 |
# File 'lib/getfluxly/rails.rb', line 12 def token @token end |