Class: Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesEvaluationsListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CustomerProfilesEvaluationsListResponse.

Parameters:



334
335
336
337
338
339
340
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 334

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

Instance Method Details

#customer_profiles_evaluationsObject



423
424
425
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 423

def customer_profiles_evaluations
    @customer_profiles_evaluations
end

#customer_profiles_evaluations_instanceObject



342
343
344
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 342

def customer_profiles_evaluations_instance
    @instance
end

#headersObject



427
428
429
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 427

def headers
  @headers
end

#status_codeObject



431
432
433
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 431

def status_code
  @status_code
end