Class: ActiveAdmin::ActionItem
- Inherits:
-
Object
- Object
- ActiveAdmin::ActionItem
- Includes:
- OptionalDisplay
- Defined in:
- lib/active_admin/resource/action_items.rb
Overview
Model class to store the data for ActionItems
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, options = {}, &block) ⇒ ActionItem
constructor
A new instance of ActionItem.
Methods included from OptionalDisplay
Constructor Details
#initialize(name, options = {}, &block) ⇒ ActionItem
Returns a new instance of ActionItem.
100 101 102 103 104 105 |
# File 'lib/active_admin/resource/action_items.rb', line 100 def initialize(name, = {}, &block) @name = name @options = @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
98 99 100 |
# File 'lib/active_admin/resource/action_items.rb', line 98 def block @block end |
#name ⇒ Object
Returns the value of attribute name.
98 99 100 |
# File 'lib/active_admin/resource/action_items.rb', line 98 def name @name end |