Class: Minato::Rails::Auth::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/minato/rails/auth/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jwt = Auth::JWT::Configuration.new) ⇒ Configuration

Returns a new instance of Configuration.



12
13
14
# File 'lib/minato/rails/auth/configuration.rb', line 12

def initialize(jwt = Auth::JWT::Configuration.new)
  @jwt = jwt
end

Instance Attribute Details

#jwtObject

Returns the value of attribute jwt.



10
11
12
# File 'lib/minato/rails/auth/configuration.rb', line 10

def jwt
  @jwt
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



16
17
18
# File 'lib/minato/rails/auth/configuration.rb', line 16

def configure
  yield(self) if block_given?
end