Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::BundleCopyListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::BundleCopyListResponse
- Defined in:
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb
Instance Method Summary collapse
- #bundle_copy ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ BundleCopyListResponse
constructor
A new instance of BundleCopyListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ BundleCopyListResponse
Returns a new instance of BundleCopyListResponse.
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_copy ⇒ Object
289 290 291 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 289 def bundle_copy @bundle_copy end |
#headers ⇒ Object
293 294 295 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 293 def headers @headers end |
#status_code ⇒ Object
297 298 299 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 297 def status_code @status_code end |