Class: VoiceML::AssistantsV1Assistant
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1Assistant
- Defined in:
- lib/voiceml/models/assistants_v1.rb
Overview
AssistantsV1Assistant — aia_asst_.... Used by list/create/update/delete responses.
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid customer_ai id model name owner url personality_prompt date_created date_updated ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ AssistantsV1Assistant
constructor
A new instance of AssistantsV1Assistant.
Constructor Details
#initialize(attrs = {}) ⇒ AssistantsV1Assistant
Returns a new instance of AssistantsV1Assistant.
26 27 28 |
# File 'lib/voiceml/models/assistants_v1.rb', line 26 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
29 |
# File 'lib/voiceml/models/assistants_v1.rb', line 29 def self.from_hash(h); h.nil? ? nil : new(h); end |