Class: Twilio::REST::Insights::V2::ReportList::AccountReportCallDirection

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/insights/v2/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ AccountReportCallDirection

Returns a new instance of AccountReportCallDirection.



45
46
47
48
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 45

def initialize(payload)
        @outbound = payload["outbound"]
        @inbound = payload["inbound"]
end

Instance Attribute Details

#inboundObject

Parameters:

  • : (outbound)
    Integer

    Number of outbound calls

  • : (inbound)
    Integer

    Number of inbound calls



44
45
46
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 44

def inbound
  @inbound
end

#outboundObject

Parameters:

  • : (outbound)
    Integer

    Number of outbound calls

  • : (inbound)
    Integer

    Number of inbound calls



44
45
46
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 44

def outbound
  @outbound
end

Instance Method Details

#to_json(options = {}) ⇒ Object



49
50
51
52
53
54
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 49

def to_json(options = {})
{
        "outbound": @outbound,
        "inbound": @inbound,
}.to_json(options)
end