Class: Twilio::REST::Memory::V1::ProfileInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, profile_instance, headers, status_code) ⇒ ProfileInstanceMetadata

Initializes a new ProfileInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ProfileInstance]

    profile_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



464
465
466
467
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 464

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

Instance Method Details

#headersObject



473
474
475
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 473

def headers
    @headers
end

#profileObject



469
470
471
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 469

def profile
    @profile_instance
end

#status_codeObject



477
478
479
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 477

def status_code
    @status_code
end

#to_sObject



481
482
483
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 481

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