Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList::EndUserInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, end_user_instance, headers, status_code) ⇒ EndUserInstanceMetadata

Initializes a new EndUserInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}EndUserInstance]

    end_user_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



403
404
405
406
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb', line 403

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

Instance Method Details

#end_userObject



408
409
410
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb', line 408

def end_user
    @end_user_instance
end

#headersObject



412
413
414
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb', line 412

def headers
    @headers
end

#status_codeObject



416
417
418
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb', line 416

def status_code
    @status_code
end

#to_sObject



420
421
422
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb', line 420

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