Class: Touth::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



20
21
22
23
24
25
# File 'lib/touth.rb', line 20

def initialize
  @access_token_lifetime = 60 * (24 * 60 * 60)  # 60 days
  @client_secret_key     = ''  # use SecureRandom.hex(64) to generate one
  @password_field        = :encrypted_password
  @header_name           = 'X-Access-Token'
end

Instance Attribute Details

#access_token_lifetimeObject

Returns the value of attribute access_token_lifetime.



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

def access_token_lifetime
  @access_token_lifetime
end

#client_secret_keyObject

Returns the value of attribute client_secret_key.



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

def client_secret_key
  @client_secret_key
end

#header_nameObject

Returns the value of attribute header_name.



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

def header_name
  @header_name
end

#password_fieldObject

Returns the value of attribute password_field.



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

def password_field
  @password_field
end