Class: Twilio::REST::Insights::V2::InboundReportInstance

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ InboundReportInstance

Initialize the InboundReportInstance

Parameters:

  • version (Version) —

    Version that contains the resource

  • payload (Hash) —

    payload that contains response from Twilio

  • account_sid (String) —

    The SID of the Account that created this InboundReport resource.

  • sid (String) —

    The SID of the Call resource to fetch.



197
198
199
200
201
202
203
204
205
206
207
208
209
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 197

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'account_sid' => payload['account_sid'],
        'report_id' => payload['report_id'],
        'status' => payload['status'],
        'request_meta' => payload['request_meta'],
        'url' => payload['url'],
    }
end

Instance Method Details

#account_sid ⇒ String

Returns The unique SID identifier of the Account.

Returns:

  • (String) —

    The unique SID identifier of the Account.



214
215
216
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 214

def 
    @properties['account_sid']
end

#inspect ⇒ Object

Provide a detailed, user friendly representation



250
251
252
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 250

def inspect
    "<Twilio.Insights.V2.InboundReportInstance>"
end

#report_id ⇒ String

Returns The report identifier as Voice Insights Report TTID.

Returns:

  • (String) —

    The report identifier as Voice Insights Report TTID.



220
221
222
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 220

def report_id
    @properties['report_id']
end

#request_meta ⇒ ReportMetadata

Returns:

  • (ReportMetadata)


232
233
234
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 232

def request_meta
    @properties['request_meta']
end

#status ⇒ ReportStatus

Returns:

  • (ReportStatus)


226
227
228
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 226

def status
    @properties['status']
end

#to_s ⇒ Object

Provide a user friendly representation



244
245
246
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 244

def to_s
    "<Twilio.Insights.V2.InboundReportInstance>"
end

#url ⇒ String

Returns The URL of this resource.

Returns:

  • (String) —

    The URL of this resource.



238
239
240
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 238

def url
    @properties['url']
end