Class: Twilio::REST::Insights::V2::ReportInstanceMetadata

Inherits:
Twilio::REST::InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/insights/v2/report.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, report_instance, headers, status_code) ⇒ ReportInstanceMetadata

Initializes a new ReportInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ReportInstance]

    report_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



615
616
617
618
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 615

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

Instance Method Details

#headersObject



624
625
626
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 624

def headers
    @headers
end

#reportObject



620
621
622
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 620

def report
    @report_instance
end

#status_codeObject



628
629
630
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 628

def status_code
    @status_code
end

#to_sObject



632
633
634
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 632

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