Class: Artemis::Bot::MessageRequest
- Inherits:
-
Object
- Object
- Artemis::Bot::MessageRequest
- Defined in:
- lib/artemis/bot/message_request.rb
Instance Attribute Summary collapse
-
#alternate_intents ⇒ Object
Returns the value of attribute alternate_intents.
-
#context ⇒ Object
Returns the value of attribute context.
-
#entities ⇒ Object
Returns the value of attribute entities.
-
#input ⇒ Object
Returns the value of attribute input.
-
#intents ⇒ Object
Returns the value of attribute intents.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ MessageRequest
constructor
A new instance of MessageRequest.
Constructor Details
#initialize(attrs = {}) ⇒ MessageRequest
Returns a new instance of MessageRequest.
8 9 10 11 12 13 14 15 |
# File 'lib/artemis/bot/message_request.rb', line 8 def initialize(attrs = {}) @input = attrs['input'] || Artemis::Bot::Input.new @alternate_intents = attrs['alternate_intents'] @context = attrs['context'] @entities = attrs['entities'] @intents = attrs['intents'] @output = attrs['output'] end |
Instance Attribute Details
#alternate_intents ⇒ Object
Returns the value of attribute alternate_intents.
6 7 8 |
# File 'lib/artemis/bot/message_request.rb', line 6 def alternate_intents @alternate_intents end |
#context ⇒ Object
Returns the value of attribute context.
6 7 8 |
# File 'lib/artemis/bot/message_request.rb', line 6 def context @context end |
#entities ⇒ Object
Returns the value of attribute entities.
6 7 8 |
# File 'lib/artemis/bot/message_request.rb', line 6 def entities @entities end |
#input ⇒ Object
Returns the value of attribute input.
6 7 8 |
# File 'lib/artemis/bot/message_request.rb', line 6 def input @input end |
#intents ⇒ Object
Returns the value of attribute intents.
6 7 8 |
# File 'lib/artemis/bot/message_request.rb', line 6 def intents @intents end |
#output ⇒ Object
Returns the value of attribute output.
6 7 8 |
# File 'lib/artemis/bot/message_request.rb', line 6 def output @output end |