Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::BundleCopyListResponse

Inherits:
InstanceListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BundleCopyListResponse.

Parameters:

  • instance (Array<BundleCopyInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


277
278
279
280
281
282
283
284
285
286
287
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 277

def initialize(version, payload, key, limit = :unset)
  data_list = payload.body[key]
  if limit != :unset
    data_list = data_list[0, limit]
  end
  @bundle_copy = data_list.map do |data|
    BundleCopyInstance.new(version, data)
  end
  @headers = payload.headers
  @status_code = payload.status_code
end

Instance Method Details

#bundle_copyObject



289
290
291
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 289

def bundle_copy
    @bundle_copy
end

#headersObject



293
294
295
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 293

def headers
  @headers
end

#status_codeObject



297
298
299
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 297

def status_code
  @status_code
end