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)


647
648
649
650
651
652
653
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 647

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



736
737
738
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 736

def bundle
    @bundle
end

#bundle_instanceObject



655
656
657
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 655

def bundle_instance
    @instance
end

#headersObject



740
741
742
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 740

def headers
  @headers
end

#status_codeObject



744
745
746
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 744

def status_code
  @status_code
end