Class: Muxi::Webhook::Clarification
- Inherits:
-
Struct
- Object
- Struct
- Muxi::Webhook::Clarification
- Defined in:
- lib/muxi/webhook.rb
Instance Attribute Summary collapse
-
#clarification_request_id ⇒ Object
Returns the value of attribute clarification_request_id.
-
#original_message ⇒ Object
Returns the value of attribute original_message.
-
#question ⇒ Object
Returns the value of attribute question.
Class Method Summary collapse
Instance Attribute Details
#clarification_request_id ⇒ Object
Returns the value of attribute clarification_request_id
37 38 39 |
# File 'lib/muxi/webhook.rb', line 37 def clarification_request_id @clarification_request_id end |
#original_message ⇒ Object
Returns the value of attribute original_message
37 38 39 |
# File 'lib/muxi/webhook.rb', line 37 def @original_message end |
#question ⇒ Object
Returns the value of attribute question
37 38 39 |
# File 'lib/muxi/webhook.rb', line 37 def question @question end |
Class Method Details
.from_hash(data) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/muxi/webhook.rb', line 38 def self.from_hash(data) new( question: data["clarification_question"] || "", clarification_request_id: data["clarification_request_id"], original_message: data["original_message"] ) end |