Class: Twilio::REST::Memory::V1::ProfileListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ProfileListResponse.

Parameters:

  • instance (Array<ProfileInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


432
433
434
435
436
437
438
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 432

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

Instance Method Details

#headersObject



526
527
528
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 526

def headers
  @headers
end

#profileObject



522
523
524
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 522

def profile
    @profile
end

#profile_instanceObject



440
441
442
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 440

def profile_instance
    @instance
end

#status_codeObject



530
531
532
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 530

def status_code
  @status_code
end