Top Level Namespace

Defined Under Namespace

Modules: AlexaSkill

Instance Method Summary collapse

Instance Method Details

#intent(name, &block) ⇒ Object



4
5
6
7
8
# File 'lib/alexa-skill/app.rb', line 4

def intent(name, &block)
  builder = AlexaSkill::IntentBuilder.new(&block)
  intent  = AlexaSkill::IntentBuilder.build(builder)
  AlexaSkill::Registry.register(name, intent)
end