Class: Lockie::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/lockie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_strategiesObject

Returns the value of attribute default_strategies.



17
18
19
# File 'lib/lockie.rb', line 17

def default_strategies
  @default_strategies
end

#hash_algorithmObject

Returns the value of attribute hash_algorithm.



19
20
21
# File 'lib/lockie.rb', line 19

def hash_algorithm
  @hash_algorithm
end

#jwt_secretObject

Returns the value of attribute jwt_secret.



18
19
20
# File 'lib/lockie.rb', line 18

def jwt_secret
  @jwt_secret
end

#model_nameObject

Returns the value of attribute model_name.



15
16
17
# File 'lib/lockie.rb', line 15

def model_name
  @model_name
end

#unauthenticated_pathObject

Returns the value of attribute unauthenticated_path.



16
17
18
# File 'lib/lockie.rb', line 16

def unauthenticated_path
  @unauthenticated_path
end