Class: CategoryFormAction

Inherits:
CompositeAction show all
Defined in:
lib/ribit/action.rb

Constant Summary collapse

ID =
'category-form'

Instance Attribute Summary

Attributes inherited from WebAction

#id

Instance Method Summary collapse

Methods inherited from CompositeAction

#add_action, #run

Methods inherited from WebAction

#add_headers, #run

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