Class: Relaton::Configuration

Inherits:
RelatonBib::Configuration
  • Object
show all
Defined in:
lib/relaton/config.rb

Constant Summary collapse

PROGNAME =
"relaton".freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



12
13
14
15
16
# File 'lib/relaton/config.rb', line 12

def initialize
  super
  @use_api = false
  @api_host = "https://api.relaton.org"
end

Instance Attribute Details

#api_hostObject

Returns the value of attribute api_host.



10
11
12
# File 'lib/relaton/config.rb', line 10

def api_host
  @api_host
end

#use_apiObject

Returns the value of attribute use_api.



10
11
12
# File 'lib/relaton/config.rb', line 10

def use_api
  @use_api
end