Class: Relaton::Configuration
- Inherits:
-
Object
- Object
- Relaton::Configuration
- Defined in:
- lib/relaton/config.rb
Overview
< RelatonBib::Configuration
Instance Attribute Summary collapse
-
#api_host ⇒ Object
Returns the value of attribute api_host.
-
#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.
16 17 18 19 20 |
# File 'lib/relaton/config.rb', line 16 def initialize # super @use_api = false @api_host = "https://api.relaton.org" end |
Instance Attribute Details
#api_host ⇒ Object
Returns the value of attribute api_host.
14 15 16 |
# File 'lib/relaton/config.rb', line 14 def api_host @api_host end |
#use_api ⇒ Object
Returns the value of attribute use_api.
14 15 16 |
# File 'lib/relaton/config.rb', line 14 def use_api @use_api end |