Class: Twilio::REST::Lookups::V2::QueryList::SmsPumpingRisk
- Inherits:
-
Object
- Object
- Twilio::REST::Lookups::V2::QueryList::SmsPumpingRisk
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Instance Attribute Summary collapse
- #carrier_risk_category ⇒ Object
- #error_code ⇒ Object
- #number_blocked ⇒ Object
- #number_blocked_date ⇒ Object
- #number_blocked_last_3_months ⇒ Object
- #sms_pumping_risk_score ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ SmsPumpingRisk
constructor
A new instance of SmsPumpingRisk.
- #to_json(options = {}) ⇒ Object
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_category ⇒ Object
311 312 313 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 311 def carrier_risk_category @carrier_risk_category end |
#error_code ⇒ Object
311 312 313 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 311 def error_code @error_code end |
#number_blocked ⇒ Object
311 312 313 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 311 def number_blocked @number_blocked end |
#number_blocked_date ⇒ Object
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_months ⇒ Object
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_score ⇒ Object
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( = {}) { "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() end |