Class: Twilio::REST::Assistants::V1::ToolInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/assistants/v1/tool.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, tool_instance, headers, status_code) ⇒ ToolInstanceMetadata

Initializes a new ToolInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ToolInstance]

    tool_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



555
556
557
558
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 555

def initialize(version, tool_instance, headers, status_code)
    super(version, headers, status_code)
    @tool_instance = tool_instance
end

Instance Method Details

#headersObject



564
565
566
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 564

def headers
    @headers
end

#status_codeObject



568
569
570
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 568

def status_code
    @status_code
end

#to_sObject



572
573
574
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 572

def to_s
  "<Twilio.Api.V2010.ToolInstanceMetadata status=#{@status_code}>"
end

#toolObject



560
561
562
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 560

def tool
    @tool_instance
end