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.



406
407
408
409
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 406

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

Instance Method Details

#headersObject



415
416
417
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 415

def headers
    @headers
end

#profileObject



411
412
413
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 411

def profile
    @profile_instance
end

#status_codeObject



419
420
421
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 419

def status_code
    @status_code
end

#to_sObject



423
424
425
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 423

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