Class: VoiceML::AssistantsV1ToolList
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1ToolList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/assistants_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#tools ⇒ Object
readonly
Returns the value of attribute tools.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ AssistantsV1ToolList
constructor
A new instance of AssistantsV1ToolList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ AssistantsV1ToolList
Returns a new instance of AssistantsV1ToolList.
71 72 73 74 |
# File 'lib/voiceml/models/assistants_v1.rb', line 71 def initialize(hash = {}) (hash) @tools = (hash['tools'] || []).map { |h| AssistantsV1Tool.from_hash(h) } end |
Instance Attribute Details
#tools ⇒ Object (readonly)
Returns the value of attribute tools.
70 71 72 |
# File 'lib/voiceml/models/assistants_v1.rb', line 70 def tools @tools end |