Class: SignIn::RedirectUrlGenerator
- Inherits:
-
Object
- Object
- SignIn::RedirectUrlGenerator
- Defined in:
- app/services/sign_in/redirect_url_generator.rb
Instance Attribute Summary collapse
-
#params_hash ⇒ Object
readonly
Returns the value of attribute params_hash.
-
#redirect_uri ⇒ Object
readonly
Returns the value of attribute redirect_uri.
-
#terms_code ⇒ Object
readonly
Returns the value of attribute terms_code.
-
#terms_redirect_uri ⇒ Object
readonly
Returns the value of attribute terms_redirect_uri.
Instance Method Summary collapse
-
#initialize(redirect_uri:, terms_redirect_uri: nil, terms_code: nil, params_hash: {}) ⇒ RedirectUrlGenerator
constructor
A new instance of RedirectUrlGenerator.
- #perform ⇒ Object
Constructor Details
#initialize(redirect_uri:, terms_redirect_uri: nil, terms_code: nil, params_hash: {}) ⇒ RedirectUrlGenerator
Returns a new instance of RedirectUrlGenerator.
7 8 9 10 11 12 |
# File 'app/services/sign_in/redirect_url_generator.rb', line 7 def initialize(redirect_uri:, terms_redirect_uri: nil, terms_code: nil, params_hash: {}) @redirect_uri = redirect_uri @terms_redirect_uri = terms_redirect_uri @terms_code = terms_code @params_hash = params_hash end |
Instance Attribute Details
#params_hash ⇒ Object (readonly)
Returns the value of attribute params_hash.
5 6 7 |
# File 'app/services/sign_in/redirect_url_generator.rb', line 5 def params_hash @params_hash end |
#redirect_uri ⇒ Object (readonly)
Returns the value of attribute redirect_uri.
5 6 7 |
# File 'app/services/sign_in/redirect_url_generator.rb', line 5 def redirect_uri @redirect_uri end |
#terms_code ⇒ Object (readonly)
Returns the value of attribute terms_code.
5 6 7 |
# File 'app/services/sign_in/redirect_url_generator.rb', line 5 def terms_code @terms_code end |
#terms_redirect_uri ⇒ Object (readonly)
Returns the value of attribute terms_redirect_uri.
5 6 7 |
# File 'app/services/sign_in/redirect_url_generator.rb', line 5 def terms_redirect_uri @terms_redirect_uri end |
Instance Method Details
#perform ⇒ Object
14 15 16 17 18 |
# File 'app/services/sign_in/redirect_url_generator.rb', line 14 def perform renderer.render(template: 'oauth_get_form', locals: { url: full_redirect_uri }, format: :html) end |