Class: Rampart::SuccessEvent
- Inherits:
-
Object
- Object
- Rampart::SuccessEvent
- Defined in:
- lib/rampart/events/success_event.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
- #halt? ⇒ Boolean
-
#initialize(user) ⇒ SuccessEvent
constructor
A new instance of SuccessEvent.
- #success? ⇒ Boolean
Constructor Details
#initialize(user) ⇒ SuccessEvent
Returns a new instance of SuccessEvent.
5 6 7 |
# File 'lib/rampart/events/success_event.rb', line 5 def initialize(user) @user = user end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
3 4 5 |
# File 'lib/rampart/events/success_event.rb', line 3 def user @user end |
Instance Method Details
#halt? ⇒ Boolean
9 10 11 |
# File 'lib/rampart/events/success_event.rb', line 9 def halt? true end |
#success? ⇒ Boolean
13 14 15 |
# File 'lib/rampart/events/success_event.rb', line 13 def success? true end |