Class: Twilio::REST::Accounts::V1::BulkConsentsListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Accounts::V1::BulkConsentsListResponse
- Defined in:
- lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb
Instance Method Summary collapse
- #bulk_consents ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ BulkConsentsListResponse
constructor
A new instance of BulkConsentsListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ BulkConsentsListResponse
Returns a new instance of BulkConsentsListResponse.
163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 163 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end = data_list.map do |data| BulkConsentsInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#bulk_consents ⇒ Object
175 176 177 |
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 175 def end |
#headers ⇒ Object
179 180 181 |
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 179 def headers @headers end |
#status_code ⇒ Object
183 184 185 |
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 183 def status_code @status_code end |