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](www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource.
-
#date_created ⇒ Time
The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
-
#date_updated ⇒ Time
The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
-
#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 associated with this MessageFeedback resource.
- #outcome ⇒ Outcome
-
#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
103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 103 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](www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource.
120 121 122 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 120 def account_sid @properties['account_sid'] end |
#date_created ⇒ Time
Returns The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
138 139 140 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 138 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
144 145 146 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 144 def date_updated @properties['date_updated'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
162 163 164 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 162 def inspect "<Twilio.Api.V2010.FeedbackInstance>" end |
#message_sid ⇒ String
Returns The SID of the Message resource associated with this MessageFeedback resource.
126 127 128 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 126 def @properties['message_sid'] end |
#outcome ⇒ Outcome
132 133 134 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 132 def outcome @properties['outcome'] end |
#to_s ⇒ Object
Provide a user friendly representation
156 157 158 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 156 def to_s "<Twilio.Api.V2010.FeedbackInstance>" end |
#uri ⇒ String
Returns The URI of the resource, relative to ‘api.twilio.com`.
150 151 152 |
# File 'lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb', line 150 def uri @properties['uri'] end |