class Twilio::REST::Api::V2010::AccountContext::MessageContext::FeedbackInstance

Public Class Methods

new(version, payload, account_sid: nil, message_sid: nil) click to toggle source

Initialize the FeedbackInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] account_sid The SID of the

{Account}[https://www.twilio.com/docs/iam/api/account] that created the
MessageFeedback resource.

@param [String] message_sid The SID of the Message resource for which the

feedback was provided.

@return [FeedbackInstance] FeedbackInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
106 def initialize(version, payload, account_sid: nil, message_sid: nil)
107   super(version)
108 
109   # Marshaled Properties
110   @properties = {
111       'account_sid' => payload['account_sid'],
112       'message_sid' => payload['message_sid'],
113       'outcome' => payload['outcome'],
114       'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
115       'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
116       'uri' => payload['uri'],
117   }
118 end

Public Instance Methods

account_sid() click to toggle source

@return [String] The SID of the Account that created the resource

    # File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
122 def account_sid
123   @properties['account_sid']
124 end
date_created() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was created

    # File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
140 def date_created
141   @properties['date_created']
142 end
date_updated() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was last updated

    # File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
146 def date_updated
147   @properties['date_updated']
148 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
164 def inspect
165   "<Twilio.Api.V2010.FeedbackInstance>"
166 end
message_sid() click to toggle source

@return [String] The SID of the Message resource for which the feedback was provided

    # File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
128 def message_sid
129   @properties['message_sid']
130 end
outcome() click to toggle source

@return [feedback.Outcome] Whether the feedback has arrived

    # File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
134 def outcome
135   @properties['outcome']
136 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
158 def to_s
159   "<Twilio.Api.V2010.FeedbackInstance>"
160 end
uri() click to toggle source

@return [String] The URI of the resource, relative to `api.twilio.com`

    # File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
152 def uri
153   @properties['uri']
154 end