Class: CategoryFormAction
- Inherits:
-
CompositeAction
- Object
- WebAction
- CompositeAction
- CategoryFormAction
- Defined in:
- lib/ribit/action.rb
Constant Summary collapse
- ID =
'category-form'
Instance Attribute Summary
Attributes inherited from WebAction
Instance Method Summary collapse
- #get_child_action_id(pageRequest) ⇒ Object
-
#initialize(ribitData) ⇒ CategoryFormAction
constructor
A new instance of CategoryFormAction.
Methods inherited from CompositeAction
Methods inherited from WebAction
Constructor Details
#initialize(ribitData) ⇒ CategoryFormAction
147 148 149 |
# File 'lib/ribit/action.rb', line 147 def initialize( ribitData ) super( ID ) end |
Instance Method Details
#get_child_action_id(pageRequest) ⇒ Object
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/ribit/action.rb', line 152 def get_child_action_id( pageRequest ) query = pageRequest.get_query_data # Only that name has a value that is attached # to pressed button @actions.each_key do |key| if ( query[key] != nil ) return key end end # no action found return nil end |