Module: Gigya::Session::ClassMethods
- Defined in:
- lib/gigya/session.rb
Instance Method Summary collapse
- #gigya_after_login_redirect(val = nil) ⇒ Object
- #gigya_api_key(val = nil) ⇒ Object
- #gigya_jwt_fields(val = nil) ⇒ Object
- #gigya_screen_set(val = nil) ⇒ Object
- #gigya_script_content_for(val = nil) ⇒ Object
- #gigya_start_screen(val = nil) ⇒ Object
- #gigya_token_expire_time(val = nil) ⇒ Object
- #gigya_token_storage(val = nil) ⇒ Object
Instance Method Details
#gigya_after_login_redirect(val = nil) ⇒ Object
96 97 98 99 |
# File 'lib/gigya/session.rb', line 96 def gigya_after_login_redirect(val = nil) return (@gigya_after_login_redirect || :root_path) if val.nil? @gigya_after_login_redirect = val end |
#gigya_api_key(val = nil) ⇒ Object
115 116 117 118 |
# File 'lib/gigya/session.rb', line 115 def gigya_api_key(val = nil) return (@gigya_api_key || Gigya::Connection.shared_connection.api_key) if val.nil? @gigya_api_key = val end |
#gigya_jwt_fields(val = nil) ⇒ Object
110 111 112 113 |
# File 'lib/gigya/session.rb', line 110 def gigya_jwt_fields(val = nil) return (@gigya_jwt_fields || "firstName,lastName,email") if val.nil? @gigya_jwt_fields = val end |
#gigya_screen_set(val = nil) ⇒ Object
81 82 83 84 |
# File 'lib/gigya/session.rb', line 81 def gigya_screen_set(val = nil) return (@gigya_screen_set || "Default-RegistrationLogin") if val.nil? @gigya_screen_set = val end |
#gigya_script_content_for(val = nil) ⇒ Object
101 102 103 104 |
# File 'lib/gigya/session.rb', line 101 def gigya_script_content_for(val = nil) return @gigya_script_content_for if val.nil? @gigya_script_content_for = val end |
#gigya_start_screen(val = nil) ⇒ Object
86 87 88 89 |
# File 'lib/gigya/session.rb', line 86 def gigya_start_screen(val = nil) return (@gigya_start_screen || "gigya-login-screen") if val.nil? @gigya_start_screen = val end |
#gigya_token_expire_time(val = nil) ⇒ Object
106 107 108 |
# File 'lib/gigya/session.rb', line 106 def gigya_token_expire_time(val = nil) return (@gigya_token_expire_time || (60 * 60 * 24)) if val.nil? end |
#gigya_token_storage(val = nil) ⇒ Object
91 92 93 94 |
# File 'lib/gigya/session.rb', line 91 def gigya_token_storage(val = nil) return (@gigya_token_storage || :cookie) if val.nil? @gigya_token_storage = val end |