Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, bundle_instance, headers, status_code) ⇒ BundleInstanceMetadata

Initializes a new BundleInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}BundleInstance]

    bundle_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



613
614
615
616
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 613

def initialize(version, bundle_instance, headers, status_code)
    super(version, headers, status_code)
    @bundle_instance = bundle_instance
end

Instance Method Details

#bundleObject



618
619
620
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 618

def bundle
    @bundle_instance
end

#headersObject



622
623
624
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb', line 622

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

def to_s
  "<Twilio.Api.V2010.BundleInstanceMetadata status=#{@status_code}>"
end