Class: Renshuu::Configuration
- Inherits:
-
Object
- Object
- Renshuu::Configuration
- Defined in:
- lib/renshuu/configuration.rb
Overview
Configuraiton object for the library.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#api_url ⇒ URI
URL of the Renshuu API.
-
#api_url=(new_url) ⇒ Object
Sets the API URL.
Instance Attribute Details
#api_key ⇒ String?
25 26 27 |
# File 'lib/renshuu/configuration.rb', line 25 def api_key @api_key end |
Instance Method Details
#api_url ⇒ URI
URL of the Renshuu API.
11 12 13 |
# File 'lib/renshuu/configuration.rb', line 11 def api_url @api_url ||= URI('https://api.renshuu.org') end |
#api_url=(new_url) ⇒ Object
Sets the API URL.
19 20 21 |
# File 'lib/renshuu/configuration.rb', line 19 def api_url=(new_url) @api_url = new_url && URI(new_url) end |