Class: Lockie::Configuration
- Inherits:
-
Object
- Object
- Lockie::Configuration
- Defined in:
- lib/lockie.rb
Instance Attribute Summary collapse
-
#default_strategies ⇒ Object
Returns the value of attribute default_strategies.
-
#hash_algorithm ⇒ Object
Returns the value of attribute hash_algorithm.
-
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
-
#model_name ⇒ Object
Returns the value of attribute model_name.
-
#unauthenticated_path ⇒ Object
Returns the value of attribute unauthenticated_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
21 22 23 24 25 26 |
# File 'lib/lockie.rb', line 21 def initialize @model_name = "User" @unauthenticated_path = "/login" @default_strategies = [:email_password, :jwt] @hash_algorithm = "HS256" end |
Instance Attribute Details
#default_strategies ⇒ Object
Returns the value of attribute default_strategies.
17 18 19 |
# File 'lib/lockie.rb', line 17 def default_strategies @default_strategies end |
#hash_algorithm ⇒ Object
Returns the value of attribute hash_algorithm.
19 20 21 |
# File 'lib/lockie.rb', line 19 def hash_algorithm @hash_algorithm end |
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
18 19 20 |
# File 'lib/lockie.rb', line 18 def jwt_secret @jwt_secret end |
#model_name ⇒ Object
Returns the value of attribute model_name.
15 16 17 |
# File 'lib/lockie.rb', line 15 def model_name @model_name end |
#unauthenticated_path ⇒ Object
Returns the value of attribute unauthenticated_path.
16 17 18 |
# File 'lib/lockie.rb', line 16 def unauthenticated_path @unauthenticated_path end |