Class: VoiceML::AssistantsV1Feedback
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1Feedback
- Defined in:
- lib/voiceml/models/assistants_v1.rb
Overview
AssistantsV1Feedback — aia_fdbk_.... Numeric score + text feedback on a message.
Constant Summary collapse
- ATTRIBUTES =
%w[ assistant_id id account_sid user_sid message_id score session_id text date_created date_updated ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ AssistantsV1Feedback
constructor
A new instance of AssistantsV1Feedback.
Constructor Details
#initialize(attrs = {}) ⇒ AssistantsV1Feedback
Returns a new instance of AssistantsV1Feedback.
202 203 204 |
# File 'lib/voiceml/models/assistants_v1.rb', line 202 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs.key?(f) ? attrs[f] : attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
205 |
# File 'lib/voiceml/models/assistants_v1.rb', line 205 def self.from_hash(h); h.nil? ? nil : new(h); end |