Class: Twilio::REST::Insights::V2::ReportList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Insights::V2::ReportList
- Defined in:
- lib/twilio-ruby/rest/insights/v2/report.rb
Defined Under Namespace
Classes: AccountReportAnsweringMachineDetection, AccountReportCallDirection, AccountReportCallState, AccountReportCallType, AccountReportKYT, AccountReportKYTOutboundCarrierCalling, AccountReportNetworkIssues, AccountReportNetworkIssuesSdk, AccountReportNetworkIssuesTwilioGateway, BrandedCalling, BrandedUseCaseDetail, CountyCarrierValueCarriers, InsightsV2CreateAccountReportRequest, InsightsV2CreateAccountReportRequestTimeRange, ReportFilter, StirShaken, StirShakenAnswerRate, StirShakenCallCount, StirShakenPercentage, VoiceIntegrity, VoiceIntegrityCallsPerBundle
Instance Method Summary collapse
-
#create(insights_v2_create_account_report_request: :unset) ⇒ ReportInstance
Create the ReportInstance.
-
#create_with_metadata(insights_v2_create_account_report_request: :unset) ⇒ ReportInstance
Create the ReportInstanceMetadata.
-
#initialize(version) ⇒ ReportList
constructor
Initialize the ReportList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ ReportList
Initialize the ReportList
465 466 467 468 469 470 471 472 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 465 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Voice/Reports" end |
Instance Method Details
#create(insights_v2_create_account_report_request: :unset) ⇒ ReportInstance
Create the ReportInstance
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 477 def create(insights_v2_create_account_report_request: :unset ) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' payload = @version.create('POST', @uri, headers: headers, data: insights_v2_create_account_report_request.to_json) ReportInstance.new( @version, payload, ) end |
#create_with_metadata(insights_v2_create_account_report_request: :unset) ⇒ ReportInstance
Create the ReportInstanceMetadata
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 497 def (insights_v2_create_account_report_request: :unset ) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' response = @version.('POST', @uri, headers: headers, data: insights_v2_create_account_report_request.to_json) report_instance = ReportInstance.new( @version, response.body, ) ReportInstanceMetadata.new( @version, report_instance, response.headers, response.status_code ) end |
#to_s ⇒ Object
Provide a user friendly representation
523 524 525 |
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 523 def to_s '#<Twilio.Insights.V2.ReportList>' end |