Class: Relaton::Configuration
- Inherits:
-
Object
- Object
- Relaton::Configuration
- Defined in:
- lib/relaton/config.rb
Instance Attribute Summary collapse
-
#api_host ⇒ Object
Returns the value of attribute api_host.
-
#logs ⇒ Object
Returns the value of attribute logs.
-
#use_api ⇒ Object
Returns the value of attribute use_api.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 23 |
# File 'lib/relaton/config.rb', line 17 def initialize @logs = %i(info error) # allowed values: :info, :warning, :error, :debug # @TODO change to true when we start using api.relaton.org @use_api = false @api_host = "https://api.relaton.org" end |
Instance Attribute Details
#api_host ⇒ Object
Returns the value of attribute api_host.
15 16 17 |
# File 'lib/relaton/config.rb', line 15 def api_host @api_host end |
#logs ⇒ Object
Returns the value of attribute logs.
15 16 17 |
# File 'lib/relaton/config.rb', line 15 def logs @logs end |
#use_api ⇒ Object
Returns the value of attribute use_api.
15 16 17 |
# File 'lib/relaton/config.rb', line 15 def use_api @use_api end |