Class: Twilio::REST::Events::V1::EventTypeInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, event_type_instance, headers, status_code) ⇒ EventTypeInstanceMetadata

Initializes a new EventTypeInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}EventTypeInstance]

    event_type_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



245
246
247
248
# File 'lib/twilio-ruby/rest/events/v1/event_type.rb', line 245

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

Instance Method Details

#event_typeObject



250
251
252
# File 'lib/twilio-ruby/rest/events/v1/event_type.rb', line 250

def event_type
    @event_type_instance
end

#headersObject



254
255
256
# File 'lib/twilio-ruby/rest/events/v1/event_type.rb', line 254

def headers
    @headers
end

#status_codeObject



258
259
260
# File 'lib/twilio-ruby/rest/events/v1/event_type.rb', line 258

def status_code
    @status_code
end

#to_sObject



262
263
264
# File 'lib/twilio-ruby/rest/events/v1/event_type.rb', line 262

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