Class: Kno::Config
- Inherits:
-
Object
- Object
- Kno::Config
- Defined in:
- lib/kno.rb
Instance Attribute Summary collapse
-
#api_host ⇒ Object
readonly
Returns the value of attribute api_host.
-
#api_token ⇒ Object
readonly
Returns the value of attribute api_token.
-
#cdn_host ⇒ Object
readonly
Returns the value of attribute cdn_host.
-
#sign_in_redirect ⇒ Object
readonly
Returns the value of attribute sign_in_redirect.
-
#site_token ⇒ Object
readonly
Returns the value of attribute site_token.
Instance Method Summary collapse
-
#initialize(api_host: "https://api.trykno.app", api_token: "API_AAAAAgDOxdmUqKpE9rw82Jj0Y6DM", cdn_host: "https://trykno.app", site_token: "site_UITYJw8kQJilzVnux5VOPw", sign_in_redirect:) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(api_host: "https://api.trykno.app", api_token: "API_AAAAAgDOxdmUqKpE9rw82Jj0Y6DM", cdn_host: "https://trykno.app", site_token: "site_UITYJw8kQJilzVnux5VOPw", sign_in_redirect:) ⇒ Config
Returns a new instance of Config.
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/kno.rb', line 30 def initialize( api_host: "https://api.trykno.app", api_token: "API_AAAAAgDOxdmUqKpE9rw82Jj0Y6DM", cdn_host: "https://trykno.app", site_token: "site_UITYJw8kQJilzVnux5VOPw", sign_in_redirect: ) @api_host = api_host @api_token = api_token @cdn_host = cdn_host @site_token = site_token @sign_in_redirect = sign_in_redirect end |
Instance Attribute Details
#api_host ⇒ Object (readonly)
Returns the value of attribute api_host.
29 30 31 |
# File 'lib/kno.rb', line 29 def api_host @api_host end |
#api_token ⇒ Object (readonly)
Returns the value of attribute api_token.
29 30 31 |
# File 'lib/kno.rb', line 29 def api_token @api_token end |
#cdn_host ⇒ Object (readonly)
Returns the value of attribute cdn_host.
29 30 31 |
# File 'lib/kno.rb', line 29 def cdn_host @cdn_host end |
#sign_in_redirect ⇒ Object (readonly)
Returns the value of attribute sign_in_redirect.
29 30 31 |
# File 'lib/kno.rb', line 29 def sign_in_redirect @sign_in_redirect end |
#site_token ⇒ Object (readonly)
Returns the value of attribute site_token.
29 30 31 |
# File 'lib/kno.rb', line 29 def site_token @site_token end |