Class: TagAuth::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
# File 'lib/tag_auth/configuration.rb', line 5

def initialize
  @token_validity_duration = 5.minutes
end

Instance Attribute Details

#token_validity_durationObject

Returns the value of attribute token_validity_duration.



3
4
5
# File 'lib/tag_auth/configuration.rb', line 3

def token_validity_duration
  @token_validity_duration
end

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:



9
10
11
# File 'lib/tag_auth/configuration.rb', line 9

def configure
  yield self if block_given?
end