Class: Twilio::REST::Trusthub::V1::CustomerProfilesListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CustomerProfilesListResponse.

Parameters:



537
538
539
540
541
542
543
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb', line 537

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

Instance Method Details

#customer_profilesObject



626
627
628
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb', line 626

def customer_profiles
    @customer_profiles
end

#customer_profiles_instanceObject



545
546
547
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb', line 545

def customer_profiles_instance
    @instance
end

#headersObject



630
631
632
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb', line 630

def headers
  @headers
end

#status_codeObject



634
635
636
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb', line 634

def status_code
  @status_code
end