Class: Twilio::REST::Verify::V2::ServiceContext::EntityInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/verify/v2/service/entity.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, entity_instance, headers, status_code) ⇒ EntityInstanceMetadata

Initializes a new EntityInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}EntityInstance] —

    entity_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



392
393
394
395
# File 'lib/twilio-ruby/rest/verify/v2/service/entity.rb', line 392

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

Instance Method Details

#entity ⇒ Object



397
398
399
# File 'lib/twilio-ruby/rest/verify/v2/service/entity.rb', line 397

def entity
    @entity_instance
end

#headers ⇒ Object



401
402
403
# File 'lib/twilio-ruby/rest/verify/v2/service/entity.rb', line 401

def headers
    @headers
end

#status_code ⇒ Object



405
406
407
# File 'lib/twilio-ruby/rest/verify/v2/service/entity.rb', line 405

def status_code
    @status_code
end

#to_s ⇒ Object



409
410
411
# File 'lib/twilio-ruby/rest/verify/v2/service/entity.rb', line 409

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