Class: TuwienLogon::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/tuwien_logon/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#secretObject

Returns the value of attribute secret.



7
8
9
# File 'lib/tuwien_logon/configuration.rb', line 7

def secret
  @secret
end

#server_time_offsetObject

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_toleranceObject

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_paramsObject

Returns the value of attribute user_info_params.



7
8
9
# File 'lib/tuwien_logon/configuration.rb', line 7

def 
  @user_info_params
end

#user_info_urlObject

Returns the value of attribute user_info_url.



7
8
9
# File 'lib/tuwien_logon/configuration.rb', line 7

def 
  @user_info_url
end