class Twilio::REST::Conversations::V1::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/conversation/message/delivery_receipt.rb 128 def initialize(version, response, solution) 129 super(version, response) 130 131 # Path Solution 132 @solution = solution 133 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/conversation/message/delivery_receipt.rb 139 def get_instance(payload) 140 DeliveryReceiptInstance.new( 141 @version, 142 payload, 143 conversation_sid: @solution[:conversation_sid], 144 message_sid: @solution[:message_sid], 145 ) 146 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb 150 def to_s 151 '<Twilio.Conversations.V1.DeliveryReceiptPage>' 152 end