Class: AlexaWebService::HintDirective
- Inherits:
-
Object
- Object
- AlexaWebService::HintDirective
- Defined in:
- lib/alexa_web_service/hint_directive.rb
Instance Attribute Summary collapse
-
#directive ⇒ Object
Returns the value of attribute directive.
Instance Method Summary collapse
-
#initialize(hint) ⇒ HintDirective
constructor
A new instance of HintDirective.
Constructor Details
#initialize(hint) ⇒ HintDirective
Returns a new instance of HintDirective.
5 6 7 8 9 10 11 12 13 |
# File 'lib/alexa_web_service/hint_directive.rb', line 5 def initialize(hint) @directive = { "type": "Hint", "hint": { "type": "PlainText", "text": hint } } end |
Instance Attribute Details
#directive ⇒ Object
Returns the value of attribute directive.
3 4 5 |
# File 'lib/alexa_web_service/hint_directive.rb', line 3 def directive @directive end |