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.



547
548
549
550
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 547

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

Instance Method Details

#headersObject



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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

#toolObject



552
553
554
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 552

def tool
    @tool_instance
end