Class: Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesEntityAssignmentsListResponse

Inherits:
InstanceListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb,
lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ CustomerProfilesEntityAssignmentsListResponse

Returns a new instance of CustomerProfilesEntityAssignmentsListResponse.

Parameters:



366
367
368
369
370
371
372
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb', line 366

def initialize(version, payload, key)
   @customer_profiles_entity_assignments_instance = payload.body[key].map do |data|
    CustomerProfilesEntityAssignmentsInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#customer_profiles_entity_assignmentsObject



455
456
457
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb', line 455

def customer_profiles_entity_assignments
    @customer_profiles_entity_assignments
end

#customer_profiles_entity_assignments_instanceObject



374
375
376
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb', line 374

def customer_profiles_entity_assignments_instance
    @instance
end

#headersObject



459
460
461
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb', line 459

def headers
  @headers
end

#status_codeObject



463
464
465
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb', line 463

def status_code
  @status_code
end