Class: Twilio::REST::Api::V2010::AccountContext::MessageContext::FeedbackInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::MessageContext::FeedbackInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the Account that created the resource.
-
#date_created ⇒ Time
The RFC 2822 date and time in GMT that the resource was created.
-
#date_updated ⇒ Time
The RFC 2822 date and time in GMT that the resource was last updated.
-
#initialize(version, payload, account_sid: nil, message_sid: nil) ⇒ FeedbackInstance
constructor
Initialize the FeedbackInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#message_sid ⇒ String
The SID of the Message resource for which the feedback was provided.
-
#outcome ⇒ feedback.Outcome
Whether the feedback has arrived.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#uri ⇒ String
The URI of the resource, relative to `api.twilio.com`.
Constructor Details
#initialize(version, payload, account_sid: nil, message_sid: nil) ⇒ FeedbackInstance
Initialize the FeedbackInstance
106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 106 def initialize(version, payload, account_sid: nil, message_sid: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'message_sid' => payload['message_sid'], 'outcome' => payload['outcome'], 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), 'uri' => payload['uri'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the Account that created the resource.
122 123 124 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 122 def account_sid @properties['account_sid'] end |
#date_created ⇒ Time
Returns The RFC 2822 date and time in GMT that the resource was created.
140 141 142 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 140 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The RFC 2822 date and time in GMT that the resource was last updated.
146 147 148 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 146 def date_updated @properties['date_updated'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
164 165 166 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 164 def inspect "<Twilio.Api.V2010.FeedbackInstance>" end |
#message_sid ⇒ String
Returns The SID of the Message resource for which the feedback was provided.
128 129 130 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 128 def @properties['message_sid'] end |
#outcome ⇒ feedback.Outcome
Returns Whether the feedback has arrived.
134 135 136 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 134 def outcome @properties['outcome'] end |
#to_s ⇒ Object
Provide a user friendly representation
158 159 160 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 158 def to_s "<Twilio.Api.V2010.FeedbackInstance>" end |
#uri ⇒ String
Returns The URI of the resource, relative to `api.twilio.com`.
152 153 154 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 152 def uri @properties['uri'] end |