Sha256: cdb0b7b003487083236ea97f7d51f9bed7a85e523a182c92a3f3da2e2eb35987

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

class <%= name.classify.pluralize %>Controller < BotController

  def ask_example
    send_replies
    update_session_to_next
  end

  def get_example
    if current_message.message == 'Yes'
      step_to state: 'say_yes_example'
    elsif current_message.message == 'No'
      step_to state: 'say_no_example'
    end
  end

  def say_yes_example
    send_replies
    update_session_to state: 'ask_example'
  end

  def say_no_example
    send_replies
    update_session_to state: 'ask_example'
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stealth-1.0.4 lib/stealth/generators/generate/flow/controllers/controller.tt
stealth-1.0.3 lib/stealth/generators/generate/flow/controllers/controller.tt
stealth-1.0.2 lib/stealth/generators/generate/flow/controllers/controller.tt
stealth-1.0.1 lib/stealth/generators/generate/flow/controllers/controller.tt