Class: Twilio::REST::Assistants::V1::AssistantContext::FeedbackInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Assistants::V1::AssistantContext::FeedbackInstance
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Feedback.
-
#assistant_id ⇒ String
The Assistant ID.
-
#date_created ⇒ Time
The date and time in GMT when the Feedback was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#date_updated ⇒ Time
The date and time in GMT when the Feedback was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#id ⇒ String
The Feedback ID.
-
#initialize(version, payload, id: nil) ⇒ FeedbackInstance
constructor
Initialize the FeedbackInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#message_id ⇒ String
The Message ID.
-
#score ⇒ Float
The Score to provide as Feedback (0-1).
-
#session_id ⇒ String
The Session ID.
-
#text ⇒ String
The text to be given as feedback.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#user_sid ⇒ String
The SID of the User created the Feedback.
Constructor Details
#initialize(version, payload, id: nil) ⇒ FeedbackInstance
Initialize the FeedbackInstance
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 213 def initialize(version, payload , id: nil) super(version) # Marshaled Properties @properties = { 'assistant_id' => payload['assistant_id'], 'id' => payload['id'], 'account_sid' => payload['account_sid'], 'user_sid' => payload['user_sid'], 'message_id' => payload['message_id'], 'score' => payload['score'], 'session_id' => payload['session_id'], 'text' => payload['text'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Feedback.
246 247 248 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 246 def account_sid @properties['account_sid'] end |
#assistant_id ⇒ String
Returns The Assistant ID.
234 235 236 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 234 def assistant_id @properties['assistant_id'] end |
#date_created ⇒ Time
Returns The date and time in GMT when the Feedback was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
282 283 284 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 282 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date and time in GMT when the Feedback was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
288 289 290 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 288 def date_updated @properties['date_updated'] end |
#id ⇒ String
Returns The Feedback ID.
240 241 242 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 240 def id @properties['id'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
300 301 302 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 300 def inspect "<Twilio.Assistants.V1.FeedbackInstance>" end |
#message_id ⇒ String
Returns The Message ID.
258 259 260 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 258 def @properties['message_id'] end |
#score ⇒ Float
Returns The Score to provide as Feedback (0-1).
264 265 266 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 264 def score @properties['score'] end |
#session_id ⇒ String
Returns The Session ID.
270 271 272 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 270 def session_id @properties['session_id'] end |
#text ⇒ String
Returns The text to be given as feedback.
276 277 278 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 276 def text @properties['text'] end |
#to_s ⇒ Object
Provide a user friendly representation
294 295 296 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 294 def to_s "<Twilio.Assistants.V1.FeedbackInstance>" end |
#user_sid ⇒ String
Returns The SID of the User created the Feedback.
252 253 254 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb', line 252 def user_sid @properties['user_sid'] end |