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)


490
491
492
493
494
495
496
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 490

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



584
585
586
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 584

def headers
  @headers
end

#profileObject



580
581
582
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 580

def profile
    @profile
end

#profile_instanceObject



498
499
500
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 498

def profile_instance
    @instance
end

#status_codeObject



588
589
590
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 588

def status_code
  @status_code
end