Module: Ralyxa
- Defined in:
- lib/ralyxa/skill.rb,
lib/ralyxa.rb,
lib/ralyxa/errors.rb,
lib/ralyxa/handler.rb,
lib/ralyxa/version.rb,
lib/ralyxa/configuration.rb,
lib/ralyxa/register_intents.rb,
lib/ralyxa/response_builder.rb,
lib/ralyxa/request_entities/user.rb,
lib/ralyxa/response_entities/card.rb,
lib/ralyxa/request_entities/request.rb,
lib/ralyxa/response_entities/reprompt.rb,
lib/ralyxa/response_entities/response.rb,
lib/ralyxa/response_entities/directives.rb,
lib/ralyxa/response_entities/output_speech.rb,
lib/ralyxa/response_entities/directives/audio.rb,
lib/ralyxa/response_entities/directives/audio/stream.rb,
lib/ralyxa/response_entities/directives/audio_player.rb,
lib/ralyxa/response_entities/directives/audio/audio_item.rb,
lib/ralyxa/response_entities/directives/audio_player/play.rb,
lib/ralyxa/response_entities/directives/audio_player/stop.rb,
lib/ralyxa/response_entities/directives/audio_player/clear_queue.rb
Overview
Handler Base Class. Each Intent Handler inherits from this, and overwrites the #handle method.
Defined Under Namespace
Modules: RequestEntities, ResponseEntities Classes: Configuration, Handler, RegisterIntents, ResponseBuilder, Skill, UnsecureUrlError
Constant Summary collapse
- VERSION =
'1.8.0'.freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
- .method_missing(m, *args, &block) ⇒ Object
- .respond_to_missing?(m, include_private = false) ⇒ Boolean
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
8 9 10 |
# File 'lib/ralyxa.rb', line 8 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
10 11 12 |
# File 'lib/ralyxa.rb', line 10 def configure yield configuration if block_given? end |
.method_missing(m, *args, &block) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/ralyxa.rb', line 14 def method_missing(m, *args, &block) if configuration.respond_to?(m) configuration.send(m, *args, &block) else super end end |
.respond_to_missing?(m, include_private = false) ⇒ Boolean
22 23 24 |
# File 'lib/ralyxa.rb', line 22 def respond_to_missing?(m, include_private = false) configuration.respond_to?(m) || super end |