Class: GetFluxly::Rails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/getfluxly/rails.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_hostObject

Returns the value of attribute api_host.



12
13
14
# File 'lib/getfluxly/rails.rb', line 12

def api_host
  @api_host
end

#tokenObject

Returns the value of attribute token.



12
13
14
# File 'lib/getfluxly/rails.rb', line 12

def token
  @token
end