Class: Twilio::REST::Lookups::V2::QueryList::SmsPumpingRisk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ SmsPumpingRisk

Returns a new instance of SmsPumpingRisk.



312
313
314
315
316
317
318
319
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 312

def initialize(payload)
        @carrier_risk_category = payload["carrier_risk_category"]
        @number_blocked = payload["number_blocked"]
        @number_blocked_date = payload["number_blocked_date"]
        @number_blocked_last_3_months = payload["number_blocked_last_3_months"]
        @sms_pumping_risk_score = payload["sms_pumping_risk_score"]
        @error_code = payload["error_code"]
end

Instance Attribute Details

#carrier_risk_categoryObject

Parameters:



311
312
313
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 311

def carrier_risk_category
  @carrier_risk_category
end

#error_codeObject

Parameters:



311
312
313
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 311

def error_code
  @error_code
end

#number_blockedObject

Parameters:



311
312
313
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 311

def number_blocked
  @number_blocked
end

#number_blocked_dateObject

Parameters:



311
312
313
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 311

def number_blocked_date
  @number_blocked_date
end

#number_blocked_last_3_monthsObject

Parameters:



311
312
313
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 311

def number_blocked_last_3_months
  @number_blocked_last_3_months
end

#sms_pumping_risk_scoreObject

Parameters:



311
312
313
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 311

def sms_pumping_risk_score
  @sms_pumping_risk_score
end

Instance Method Details

#to_json(options = {}) ⇒ Object



320
321
322
323
324
325
326
327
328
329
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 320

def to_json(options = {})
{
        "carrier_risk_category": @carrier_risk_category,
        "number_blocked": @number_blocked,
        "number_blocked_date": @number_blocked_date,
        "number_blocked_last_3_months": @number_blocked_last_3_months,
        "sms_pumping_risk_score": @sms_pumping_risk_score,
        "error_code": @error_code,
}.to_json(options)
end