Class: Authralia::AuthenticatedSession::Rejection
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(session_identifier, guid) ⇒ Rejection
constructor
A new instance of Rejection.
Constructor Details
#initialize(session_identifier, guid) ⇒ Rejection
Returns a new instance of Rejection.
4 5 6 7 |
# File 'lib/authenticated_session/rejection.rb', line 4 def initialize(session_identifier, guid) @session_identifier = session_identifier @guid = guid end |
Instance Method Details
#call ⇒ Object
9 10 11 12 13 |
# File 'lib/authenticated_session/rejection.rb', line 9 def call response(status: FAIL) if @session_identifier.blank? remove_session_based_on_guid(@session_identifier, @guid) response(status: SUCCESS) end |