Class: Twilio::REST::Accounts::V1::BulkConsentsListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BulkConsentsListResponse.

Parameters:



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
  @bulk_consents = data_list.map do |data|
    BulkConsentsInstance.new(version, data)
  end
  @headers = payload.headers
  @status_code = payload.status_code
end

Instance Method Details

#bulk_consentsObject



175
176
177
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 175

def bulk_consents
    @bulk_consents
end

#headersObject



179
180
181
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 179

def headers
  @headers
end

#status_codeObject



183
184
185
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 183

def status_code
  @status_code
end