Class: VoiceML::AssistantsV1ToolList

Inherits:
Object
  • Object
show all
Includes:
V1Pageable
Defined in:
lib/voiceml/models/assistants_v1.rb

Constant Summary

Constants included from V1Pageable

V1Pageable::META_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from V1Pageable

#assign_meta_fields

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 = {})
  assign_meta_fields(hash)
  @tools = (hash['tools'] || []).map { |h| AssistantsV1Tool.from_hash(h) }
end

Instance Attribute Details

#toolsObject (readonly)

Returns the value of attribute tools.



70
71
72
# File 'lib/voiceml/models/assistants_v1.rb', line 70

def tools
  @tools
end