Class: Twilio::REST::Insights::V2::ReportList::StirShakenAnswerRate

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) ⇒ StirShakenAnswerRate

Returns a new instance of StirShakenAnswerRate.



364
365
366
367
368
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 364

def initialize(payload)
        @stsh_a = payload["stsh_a"]
        @stsh_b = payload["stsh_b"]
        @stsh_c = payload["stsh_c"]
end

Instance Attribute Details

#stsh_aObject

Parameters:

  • : (stsh_a)
    Float

    Answer rate for Stir Shaken category A.

  • : (stsh_b)
    Float

    Answer rate for Stir Shaken category B.

  • : (stsh_c)
    Float

    Answer rate for Stir Shaken category C.



363
364
365
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 363

def stsh_a
  @stsh_a
end

#stsh_bObject

Parameters:

  • : (stsh_a)
    Float

    Answer rate for Stir Shaken category A.

  • : (stsh_b)
    Float

    Answer rate for Stir Shaken category B.

  • : (stsh_c)
    Float

    Answer rate for Stir Shaken category C.



363
364
365
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 363

def stsh_b
  @stsh_b
end

#stsh_cObject

Parameters:

  • : (stsh_a)
    Float

    Answer rate for Stir Shaken category A.

  • : (stsh_b)
    Float

    Answer rate for Stir Shaken category B.

  • : (stsh_c)
    Float

    Answer rate for Stir Shaken category C.



363
364
365
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 363

def stsh_c
  @stsh_c
end

Instance Method Details

#to_json(options = {}) ⇒ Object



369
370
371
372
373
374
375
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 369

def to_json(options = {})
{
        "stsh_a": @stsh_a,
        "stsh_b": @stsh_b,
        "stsh_c": @stsh_c,
}.to_json(options)
end