Class: Twilio::REST::Monitor::V1::EventInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/monitor/v1/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.



285
286
287
288
# File 'lib/twilio-ruby/rest/monitor/v1/event.rb', line 285

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

Instance Method Details

#eventObject



290
291
292
# File 'lib/twilio-ruby/rest/monitor/v1/event.rb', line 290

def event
    @event_instance
end

#headersObject



294
295
296
# File 'lib/twilio-ruby/rest/monitor/v1/event.rb', line 294

def headers
    @headers
end

#status_codeObject



298
299
300
# File 'lib/twilio-ruby/rest/monitor/v1/event.rb', line 298

def status_code
    @status_code
end

#to_sObject



302
303
304
# File 'lib/twilio-ruby/rest/monitor/v1/event.rb', line 302

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