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:



326
327
328
329
330
331
332
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 326

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



415
416
417
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 415

def customer_profiles_evaluations
    @customer_profiles_evaluations
end

#customer_profiles_evaluations_instanceObject



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

def customer_profiles_evaluations_instance
    @instance
end

#headersObject



419
420
421
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 419

def headers
  @headers
end

#status_codeObject



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

def status_code
  @status_code
end