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.



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

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

Instance Method Details

#headers ⇒ Object



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

def headers
    @headers
end

#report ⇒ Object



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

def report
    @report_instance
end

#status_code ⇒ Object



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

def status_code
    @status_code
end

#to_s ⇒ Object



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

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