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)


639
640
641
642
643
644
645
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 639

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



728
729
730
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 728

def bundle
    @bundle
end

#bundle_instanceObject



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

def bundle_instance
    @instance
end

#headersObject



732
733
734
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 732

def headers
  @headers
end

#status_codeObject



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

def status_code
  @status_code
end