Class: EasyJwtAuth::Config

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.algoObject (readonly)

Returns the value of attribute algo.



4
5
6
# File 'lib/easy_jwt_auth/config.rb', line 4

def algo
  @algo
end

.expirationObject (readonly)

Returns the value of attribute expiration.



4
5
6
# File 'lib/easy_jwt_auth/config.rb', line 4

def expiration
  @expiration
end

.finder_methodObject (readonly)

Returns the value of attribute finder_method.



4
5
6
# File 'lib/easy_jwt_auth/config.rb', line 4

def finder_method
  @finder_method
end

.secretObject (readonly)

Returns the value of attribute secret.



4
5
6
# File 'lib/easy_jwt_auth/config.rb', line 4

def secret
  @secret
end

Class Method Details

.set_algo(algo) ⇒ Object



6
7
8
# File 'lib/easy_jwt_auth/config.rb', line 6

def set_algo(algo)
  @algo = algo
end

.set_expiration(expiration) ⇒ Object



10
11
12
# File 'lib/easy_jwt_auth/config.rb', line 10

def set_expiration(expiration)
  @expiration = expiration
end

.set_finder_method(finder_method) ⇒ Object



14
15
16
17
18
# File 'lib/easy_jwt_auth/config.rb', line 14

def set_finder_method(finder_method)
  raise InvalidFinderMethod unless finder_method.respond_to?(:call)

  @finder_method = finder_method
end

.set_secret(secret) ⇒ Object



20
21
22
# File 'lib/easy_jwt_auth/config.rb', line 20

def set_secret(secret)
  @secret = secret
end