Class: Twilio::REST::Assistants::V1::AssistantContext::AssistantsKnowledgeListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Assistants::V1::AssistantContext::AssistantsKnowledgeListResponse
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb,
lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb
Instance Method Summary collapse
- #assistants_knowledge ⇒ Object
- #assistants_knowledge_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ AssistantsKnowledgeListResponse
constructor
A new instance of AssistantsKnowledgeListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ AssistantsKnowledgeListResponse
Returns a new instance of AssistantsKnowledgeListResponse.
308 309 310 311 312 313 314 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 308 def initialize(version, payload, key) @assistants_knowledge_instance = payload.body[key].map do |data| AssistantsKnowledgeInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#assistants_knowledge ⇒ Object
397 398 399 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 397 def assistants_knowledge @assistants_knowledge end |
#assistants_knowledge_instance ⇒ Object
316 317 318 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 316 def assistants_knowledge_instance @instance end |
#headers ⇒ Object
401 402 403 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 401 def headers @headers end |
#status_code ⇒ Object
405 406 407 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 405 def status_code @status_code end |