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.
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
#headers ⇒ Object
526 527 528 |
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 526 def headers @headers end |
#profile ⇒ Object
522 523 524 |
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 522 def profile @profile end |
#profile_instance ⇒ Object
440 441 442 |
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 440 def profile_instance @instance end |
#status_code ⇒ Object
530 531 532 |
# File 'lib/twilio-ruby/rest/memory/v1/profile.rb', line 530 def status_code @status_code end |