Class: AbAdmin::Config::BatchAction
- Defined in:
- lib/ab_admin/config/base.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#form ⇒ Object
readonly
Returns the value of attribute form.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #confirm ⇒ Object
-
#initialize(name, options = {}, &block) ⇒ BatchAction
constructor
A new instance of BatchAction.
- #title ⇒ Object
Constructor Details
#initialize(name, options = {}, &block) ⇒ BatchAction
Returns a new instance of BatchAction.
132 133 134 135 136 137 138 139 |
# File 'lib/ab_admin/config/base.rb', line 132 def initialize(name, ={}, &block) @name = name @options = if .has_key?(:form) @form = [:form].is_a?(String) ? [:form] : "##{name}_batch_form" end @data = block_given? ? block : name.to_sym end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
130 131 132 |
# File 'lib/ab_admin/config/base.rb', line 130 def data @data end |
#form ⇒ Object (readonly)
Returns the value of attribute form.
130 131 132 |
# File 'lib/ab_admin/config/base.rb', line 130 def form @form end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
130 131 132 |
# File 'lib/ab_admin/config/base.rb', line 130 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
130 131 132 |
# File 'lib/ab_admin/config/base.rb', line 130 def @options end |