Class: VoiceML::AssistantsV1Knowledge
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1Knowledge
- Defined in:
- lib/voiceml/models/assistants_v1.rb
Overview
AssistantsV1Knowledge — aia_know_....
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid description id knowledge_source_details name status type url embedding_model date_created date_updated ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ AssistantsV1Knowledge
constructor
A new instance of AssistantsV1Knowledge.
Constructor Details
#initialize(attrs = {}) ⇒ AssistantsV1Knowledge
Returns a new instance of AssistantsV1Knowledge.
97 98 99 |
# File 'lib/voiceml/models/assistants_v1.rb', line 97 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
100 |
# File 'lib/voiceml/models/assistants_v1.rb', line 100 def self.from_hash(h); h.nil? ? nil : new(h); end |