Class: Notifications::Action
- Inherits:
-
Object
- Object
- Notifications::Action
- Defined in:
- lib/notifications.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#action_string ⇒ Object
Returns the value of attribute action_string.
-
#callback ⇒ Object
Returns the value of attribute callback.
Instance Method Summary collapse
-
#initialize(action, action_string, callback = nil) ⇒ Action
constructor
A new instance of Action.
- #normalize ⇒ Object
Constructor Details
#initialize(action, action_string, callback = nil) ⇒ Action
Returns a new instance of Action.
133 134 135 136 137 |
# File 'lib/notifications.rb', line 133 def initialize(action, action_string, callback = nil) @action = action @action_string = action_string @callback = callback end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
131 132 133 |
# File 'lib/notifications.rb', line 131 def action @action end |
#action_string ⇒ Object
Returns the value of attribute action_string.
131 132 133 |
# File 'lib/notifications.rb', line 131 def action_string @action_string end |
#callback ⇒ Object
Returns the value of attribute callback.
131 132 133 |
# File 'lib/notifications.rb', line 131 def callback @callback end |
Instance Method Details
#normalize ⇒ Object
139 140 141 |
# File 'lib/notifications.rb', line 139 def normalize [@action, @action_string] end |