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 =
'https://shikimori.one/'
- 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.
12 13 14 15 |
# File 'lib/shikimori/oauth2/config.rb', line 12 def initialize(site: DEFAULT_SITE_URL, app_name: DEFAULT_APP_NAME, **) @app_name = app_name @options = { site: site }.merge() end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
10 11 12 |
# File 'lib/shikimori/oauth2/config.rb', line 10 def app_name @app_name end |
#options ⇒ Object
Returns the value of attribute options.
10 11 12 |
# File 'lib/shikimori/oauth2/config.rb', line 10 def @options end |
#site ⇒ Object
Returns the value of attribute site.
10 11 12 |
# File 'lib/shikimori/oauth2/config.rb', line 10 def site @site end |