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.
300 301 302 303 304 305 306 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 300 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
389 390 391 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 389 def assistants_knowledge @assistants_knowledge end |
#assistants_knowledge_instance ⇒ Object
308 309 310 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 308 def assistants_knowledge_instance @instance end |
#headers ⇒ Object
393 394 395 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 393 def headers @headers end |
#status_code ⇒ Object
397 398 399 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 397 def status_code @status_code end |