Sha256: 843d182db5a22e5afaf1f5c83173d1e90972bba9c810e7e6804f73e9cef88437
Contents?: true
Size: 735 Bytes
Versions: 5
Compression:
Stored size: 735 Bytes
Contents
class Ussd::Menus::<%= menu_name.camelcase %>Menu < JoyUssdEngine::Menu def on_validate # User input validation end def before_render # Implement before call backs @field_name="<%= menu_name.underscore %>" @menu_text = "Welcome to the <%= menu_name.camelcase %> menu" end def on_error # Render error # @menu_text = "#{@error_text}\n#{@menu_text }" end def after_render # Implement after call backs end def render # Render ussd menu and pass the next menu as an argument # joy_response(Ussd::Menus::<%= menu_name.camelcase %>Menu) # Render ussd menu and terminate the user session # joy_release end end
Version data entries
5 entries across 5 versions & 1 rubygems