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:



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

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



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

def customer_profiles_entity_assignments
    @customer_profiles_entity_assignments
end

#customer_profiles_entity_assignments_instanceObject



382
383
384
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb', line 382

def customer_profiles_entity_assignments_instance
    @instance
end

#headersObject



467
468
469
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb', line 467

def headers
  @headers
end

#status_codeObject



471
472
473
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb', line 471

def status_code
  @status_code
end