Class: Twilio::REST::Sync::V1::ServiceContext::DocumentListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Sync::V1::ServiceContext::DocumentListResponse
- Defined in:
- lib/twilio-ruby/rest/sync/v1/service/document.rb,
lib/twilio-ruby/rest/sync/v1/service/document.rb
Instance Method Summary collapse
- #document ⇒ Object
- #document_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ DocumentListResponse
constructor
A new instance of DocumentListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ DocumentListResponse
Returns a new instance of DocumentListResponse.
468 469 470 471 472 473 474 |
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 468 def initialize(version, payload, key) @document_instance = payload.body[key].map do |data| DocumentInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#document ⇒ Object
557 558 559 |
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 557 def document @document end |
#document_instance ⇒ Object
476 477 478 |
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 476 def document_instance @instance end |
#headers ⇒ Object
561 562 563 |
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 561 def headers @headers end |
#status_code ⇒ Object
565 566 567 |
# File 'lib/twilio-ruby/rest/sync/v1/service/document.rb', line 565 def status_code @status_code end |