Class: QueueClassicAdmin::CustomAction
- Inherits:
-
Object
- Object
- QueueClassicAdmin::CustomAction
- Defined in:
- lib/queue_classic_admin/custom_action.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ CustomAction
constructor
A new instance of CustomAction.
- #slug ⇒ Object
Constructor Details
#initialize(name, &block) ⇒ CustomAction
Returns a new instance of CustomAction.
5 6 7 |
# File 'lib/queue_classic_admin/custom_action.rb', line 5 def initialize(name, &block) @name, @action = name, block end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
3 4 5 |
# File 'lib/queue_classic_admin/custom_action.rb', line 3 def action @action end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/queue_classic_admin/custom_action.rb', line 3 def name @name end |
Instance Method Details
#slug ⇒ Object
9 10 11 |
# File 'lib/queue_classic_admin/custom_action.rb', line 9 def slug name.underscore end |