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)


285
286
287
288
289
290
291
292
293
294
295
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 285

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



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

def bundle_copy
    @bundle_copy
end

#headersObject



301
302
303
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 301

def headers
  @headers
end

#status_codeObject



305
306
307
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 305

def status_code
  @status_code
end