Class: Notifications::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/notifications.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject

Returns the value of attribute action.



131
132
133
# File 'lib/notifications.rb', line 131

def action
  @action
end

#action_stringObject

Returns the value of attribute action_string.



131
132
133
# File 'lib/notifications.rb', line 131

def action_string
  @action_string
end

#callbackObject

Returns the value of attribute callback.



131
132
133
# File 'lib/notifications.rb', line 131

def callback
  @callback
end

Instance Method Details

#normalizeObject



139
140
141
# File 'lib/notifications.rb', line 139

def normalize
  [@action, @action_string]
end