Class: Twilio::REST::Taskrouter::V1::WorkspaceContext::EventInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, event_instance, headers, status_code) ⇒ EventInstanceMetadata

Initializes a new EventInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}EventInstance]

    event_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



330
331
332
333
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb', line 330

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

Instance Method Details

#eventObject



335
336
337
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb', line 335

def event
    @event_instance
end

#headersObject



339
340
341
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb', line 339

def headers
    @headers
end

#status_codeObject



343
344
345
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb', line 343

def status_code
    @status_code
end

#to_sObject



347
348
349
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb', line 347

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