Class: TuwienLogon::Configuration
- Inherits:
-
Object
- Object
- TuwienLogon::Configuration
- Includes:
- Singleton
- Defined in:
- lib/tuwien_logon/configuration.rb
Instance Attribute Summary collapse
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#server_time_offset ⇒ Object
Returns the value of attribute server_time_offset.
-
#time_tolerance ⇒ Object
Returns the value of attribute time_tolerance.
-
#user_info_params ⇒ Object
Returns the value of attribute user_info_params.
-
#user_info_url ⇒ Object
Returns the value of attribute user_info_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/tuwien_logon/configuration.rb', line 9 def initialize @user_info_url = 'https://iu.zid.tuwien.ac.at/AuthServ.userInfo' @secret = '123456' @user_info_params = [:oid, :firstname, :lastname, :title, :matriculation_number, :institute_symbol] @time_tolerance = 5 @server_time_offset = 0 end |
Instance Attribute Details
#secret ⇒ Object
Returns the value of attribute secret.
7 8 9 |
# File 'lib/tuwien_logon/configuration.rb', line 7 def secret @secret end |
#server_time_offset ⇒ Object
Returns the value of attribute server_time_offset.
7 8 9 |
# File 'lib/tuwien_logon/configuration.rb', line 7 def server_time_offset @server_time_offset end |
#time_tolerance ⇒ Object
Returns the value of attribute time_tolerance.
7 8 9 |
# File 'lib/tuwien_logon/configuration.rb', line 7 def time_tolerance @time_tolerance end |
#user_info_params ⇒ Object
Returns the value of attribute user_info_params.
7 8 9 |
# File 'lib/tuwien_logon/configuration.rb', line 7 def user_info_params @user_info_params end |
#user_info_url ⇒ Object
Returns the value of attribute user_info_url.
7 8 9 |
# File 'lib/tuwien_logon/configuration.rb', line 7 def user_info_url @user_info_url end |