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:



529
530
531
532
533
534
535
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb', line 529

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



618
619
620
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb', line 618

def customer_profiles
    @customer_profiles
end

#customer_profiles_instanceObject



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

def customer_profiles_instance
    @instance
end

#headersObject



622
623
624
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb', line 622

def headers
  @headers
end

#status_codeObject



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

def status_code
  @status_code
end