Class: Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesChannelEndpointAssignmentListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CustomerProfilesChannelEndpointAssignmentListResponse.

Parameters:



380
381
382
383
384
385
386
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 380

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

Instance Method Details

#customer_profiles_channel_endpoint_assignmentObject



469
470
471
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 469

def customer_profiles_channel_endpoint_assignment
    @customer_profiles_channel_endpoint_assignment
end

#customer_profiles_channel_endpoint_assignment_instanceObject



388
389
390
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 388

def customer_profiles_channel_endpoint_assignment_instance
    @instance
end

#headersObject



473
474
475
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 473

def headers
  @headers
end

#status_codeObject



477
478
479
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 477

def status_code
  @status_code
end