Class: Doorkeeper::JWT::Config::Builder
- Inherits:
-
Object
- Object
- Doorkeeper::JWT::Config::Builder
- Defined in:
- lib/doorkeeper-jwt/config.rb
Instance Method Summary collapse
- #build ⇒ Object
- #encryption_method(encryption_method) ⇒ Object
-
#initialize(&block) ⇒ Builder
constructor
A new instance of Builder.
- #secret_key(secret_key) ⇒ Object
- #secret_key_path(secret_key_path) ⇒ Object
- #use_application_secret(use_application_secret) ⇒ Object
Constructor Details
Instance Method Details
#build ⇒ Object
26 27 28 |
# File 'lib/doorkeeper-jwt/config.rb', line 26 def build @config end |
#encryption_method(encryption_method) ⇒ Object
45 46 47 48 49 |
# File 'lib/doorkeeper-jwt/config.rb', line 45 def encryption_method(encryption_method) @config.instance_variable_set( '@encryption_method', encryption_method ) end |
#secret_key(secret_key) ⇒ Object
37 38 39 |
# File 'lib/doorkeeper-jwt/config.rb', line 37 def secret_key(secret_key) @config.instance_variable_set('@secret_key', secret_key) end |
#secret_key_path(secret_key_path) ⇒ Object
41 42 43 |
# File 'lib/doorkeeper-jwt/config.rb', line 41 def secret_key_path(secret_key_path) @config.instance_variable_set('@secret_key_path', secret_key_path) end |
#use_application_secret(use_application_secret) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/doorkeeper-jwt/config.rb', line 30 def use_application_secret(use_application_secret) @config.instance_variable_set( '@use_application_secret', use_application_secret ) end |