class Twilio::REST::Sync::V1::ServiceContext::DocumentContext::DocumentPermissionPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the DocumentPermissionPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [DocumentPermissionPage] DocumentPermissionPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb 127 def initialize(version, response, solution) 128 super(version, response) 129 130 # Path Solution 131 @solution = solution 132 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of DocumentPermissionInstance
@param [Hash] payload Payload response from the API @return [DocumentPermissionInstance] DocumentPermissionInstance
# File lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb 138 def get_instance(payload) 139 DocumentPermissionInstance.new( 140 @version, 141 payload, 142 service_sid: @solution[:service_sid], 143 document_sid: @solution[:document_sid], 144 ) 145 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb 149 def to_s 150 '<Twilio.Sync.V1.DocumentPermissionPage>' 151 end