Class: Shikimori::OAuth2::Config
- Inherits:
-
Object
- Object
- Shikimori::OAuth2::Config
- Defined in:
- lib/shikimori/oauth2/config.rb
Overview
Configuration for Shikimori OAuth2 client
Constant Summary collapse
- DEFAULT_SITE_URL =
Returns Default site url.
'https://shikimori.one/'- DEFAULT_APP_NAME =
Returns Default APP name.
'Api Test'
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#site ⇒ Object
Returns the value of attribute site.
Instance Method Summary collapse
-
#initialize(site: DEFAULT_SITE_URL, app_name: DEFAULT_APP_NAME, **options) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(site: DEFAULT_SITE_URL, app_name: DEFAULT_APP_NAME, **options) ⇒ Config
Returns a new instance of Config.
14 15 16 17 |
# File 'lib/shikimori/oauth2/config.rb', line 14 def initialize(site: DEFAULT_SITE_URL, app_name: DEFAULT_APP_NAME, **) @app_name = app_name = { site: site }.merge() end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
12 13 14 |
# File 'lib/shikimori/oauth2/config.rb', line 12 def app_name @app_name end |
#options ⇒ Object
Returns the value of attribute options.
12 13 14 |
# File 'lib/shikimori/oauth2/config.rb', line 12 def end |
#site ⇒ Object
Returns the value of attribute site.
12 13 14 |
# File 'lib/shikimori/oauth2/config.rb', line 12 def site @site end |