Class: Twilio::REST::Trusthub::V1::EndUserTypeInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, end_user_type_instance, headers, status_code) ⇒ EndUserTypeInstanceMetadata

Initializes a new EndUserTypeInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}EndUserTypeInstance]

    end_user_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.



237
238
239
240
# File 'lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb', line 237

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

Instance Method Details

#end_user_typeObject



242
243
244
# File 'lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb', line 242

def end_user_type
    @end_user_type_instance
end

#headersObject



246
247
248
# File 'lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb', line 246

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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