Class: Twilio::REST::Intelligence::V3::RuleExecutionList::ResolvedContextKnowledge
- Inherits:
-
Object
- Object
- Twilio::REST::Intelligence::V3::RuleExecutionList::ResolvedContextKnowledge
- Defined in:
- lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ ResolvedContextKnowledge
constructor
A new instance of ResolvedContextKnowledge.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ResolvedContextKnowledge
Returns a new instance of ResolvedContextKnowledge.
127 128 129 |
# File 'lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb', line 127 def initialize(payload) @sources = payload["sources"] end |
Instance Attribute Details
#sources ⇒ Object
126 127 128 |
# File 'lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb', line 126 def sources @sources end |
Instance Method Details
#to_json(options = {}) ⇒ Object
130 131 132 133 134 |
# File 'lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb', line 130 def to_json( = {}) { "sources": @sources, }.to_json() end |