Class: Twilio::REST::Knowledge::V2::ChunkPage
- Defined in:
- lib/twilio-ruby/rest/knowledge/v2/chunk.rb
Constant Summary
Constants inherited from Page
Instance Attribute Summary
Attributes inherited from TokenPage
Instance Method Summary collapse
-
#get_instance(payload) ⇒ ChunkInstance
Build an instance of ChunkInstance.
-
#initialize(version, response, solution) ⇒ ChunkPage
constructor
Initialize the ChunkPage.
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from TokenPage
#load_page, #next_page, #next_page_url, #next_token, #previous_page, #previous_page_url, #previous_token
Methods inherited from Page
#each, #load_page, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution) ⇒ ChunkPage
Initialize the ChunkPage
172 173 174 175 176 177 178 179 |
# File 'lib/twilio-ruby/rest/knowledge/v2/chunk.rb', line 172 def initialize(version, response, solution) apiV1Version = ApiV1Version.new version.domain, version super(apiV1Version, response) # Path Solution @solution = solution end |
Instance Method Details
#get_instance(payload) ⇒ ChunkInstance
Build an instance of ChunkInstance
185 186 187 |
# File 'lib/twilio-ruby/rest/knowledge/v2/chunk.rb', line 185 def get_instance(payload) ChunkInstance.new(@version, payload, kb_id: @solution[:kb_id], knowledge_id: @solution[:knowledge_id]) end |
#to_s ⇒ Object
Provide a user friendly representation
191 192 193 |
# File 'lib/twilio-ruby/rest/knowledge/v2/chunk.rb', line 191 def to_s '<Twilio.Knowledge.V2.ChunkPage>' end |