Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BundleListResponse.

Parameters:

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


623
624
625
626
627
628
629
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 623

def initialize(version, payload, key)
   @bundle_instance = payload.body[key].map do |data|
    BundleInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#bundleObject



712
713
714
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 712

def bundle
    @bundle
end

#bundle_instanceObject



631
632
633
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 631

def bundle_instance
    @instance
end

#headersObject



716
717
718
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 716

def headers
  @headers
end

#status_codeObject



720
721
722
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 720

def status_code
  @status_code
end