Class: JaLC::REST::Config
- Inherits:
-
Object
- Object
- JaLC::REST::Config
- Defined in:
- lib/jalc/rest/config.rb
Constant Summary collapse
- DEFAULT_BASE_URL =
'https://api.japanlinkcenter.org'
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
12 13 14 15 |
# File 'lib/jalc/rest/config.rb', line 12 def initialize @base_url = DEFAULT_BASE_URL @logger = ::Logger.new($stdout) end |
Instance Attribute Details
#base_url ⇒ Object
Returns the value of attribute base_url.
10 11 12 |
# File 'lib/jalc/rest/config.rb', line 10 def base_url @base_url end |
#logger ⇒ Object
Returns the value of attribute logger.
10 11 12 |
# File 'lib/jalc/rest/config.rb', line 10 def logger @logger end |