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(value) ⇒ Object
-
#initialize(&block) ⇒ Builder
constructor
A new instance of Builder.
- #secret_key(value) ⇒ Object
- #secret_key_path(value) ⇒ Object
- #use_application_secret(value) ⇒ 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(value) ⇒ Object
42 43 44 |
# File 'lib/doorkeeper/jwt/config.rb', line 42 def encryption_method(value) @config.instance_variable_set("@encryption_method", value) end |
#secret_key(value) ⇒ Object
34 35 36 |
# File 'lib/doorkeeper/jwt/config.rb', line 34 def secret_key(value) @config.instance_variable_set("@secret_key", value) end |
#secret_key_path(value) ⇒ Object
38 39 40 |
# File 'lib/doorkeeper/jwt/config.rb', line 38 def secret_key_path(value) @config.instance_variable_set("@secret_key_path", value) end |
#use_application_secret(value) ⇒ Object
30 31 32 |
# File 'lib/doorkeeper/jwt/config.rb', line 30 def use_application_secret(value) @config.instance_variable_set("@use_application_secret", value) end |