class Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::MessageContext::DeliveryReceiptPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the DeliveryReceiptPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [DeliveryReceiptPage] DeliveryReceiptPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb 136 def initialize(version, response, solution) 137 super(version, response) 138 139 # Path Solution 140 @solution = solution 141 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of DeliveryReceiptInstance
@param [Hash] payload Payload response from the API @return [DeliveryReceiptInstance] DeliveryReceiptInstance
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb 147 def get_instance(payload) 148 DeliveryReceiptInstance.new( 149 @version, 150 payload, 151 chat_service_sid: @solution[:chat_service_sid], 152 conversation_sid: @solution[:conversation_sid], 153 message_sid: @solution[:message_sid], 154 ) 155 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb 159 def to_s 160 '<Twilio.Conversations.V1.DeliveryReceiptPage>' 161 end