Class: Twilio::REST::Memory::V1::ProfileListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Memory::V1::ProfileListResponse
- Defined in:
- lib/twilio-ruby/rest/memory/v1/profile.rb,
lib/twilio-ruby/rest/memory/v1/profile.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ProfileListResponse
constructor
A new instance of ProfileListResponse.
- #profile ⇒ Object
- #profile_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ProfileListResponse
Returns a new instance of ProfileListResponse.
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
#headers ⇒ Object
584 585 586 |
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 584 def headers @headers end |
#profile ⇒ Object
580 581 582 |
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 580 def profile @profile end |
#profile_instance ⇒ Object
498 499 500 |
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 498 def profile_instance @instance end |
#status_code ⇒ Object
588 589 590 |
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 588 def status_code @status_code end |