Class: Twilio::REST::Lookups::V2::QueryList::LookupRequestWithCorId
- Inherits:
-
Object
- Object
- Twilio::REST::Lookups::V2::QueryList::LookupRequestWithCorId
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Instance Attribute Summary collapse
- #correlation_id ⇒ Object
- #country_code ⇒ Object
- #fields ⇒ Object
- #identity_match ⇒ Object
- #phone_number ⇒ Object
- #reassigned_number ⇒ Object
- #sms_pumping_risk ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ LookupRequestWithCorId
constructor
A new instance of LookupRequestWithCorId.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ LookupRequestWithCorId
Returns a new instance of LookupRequestWithCorId.
225 226 227 228 229 230 231 232 233 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 225 def initialize(payload) @correlation_id = payload["correlation_id"] @phone_number = payload["phone_number"] @fields = payload["fields"] @country_code = payload["country_code"] @identity_match = payload["identity_match"] @reassigned_number = payload["reassigned_number"] @sms_pumping_risk = payload["sms_pumping_risk"] end |
Instance Attribute Details
#correlation_id ⇒ Object
224 225 226 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 224 def correlation_id @correlation_id end |
#country_code ⇒ Object
224 225 226 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 224 def country_code @country_code end |
#fields ⇒ Object
224 225 226 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 224 def fields @fields end |
#identity_match ⇒ Object
224 225 226 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 224 def identity_match @identity_match end |
#phone_number ⇒ Object
224 225 226 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 224 def phone_number @phone_number end |
#reassigned_number ⇒ Object
224 225 226 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 224 def reassigned_number @reassigned_number end |
#sms_pumping_risk ⇒ Object
224 225 226 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 224 def sms_pumping_risk @sms_pumping_risk end |
Instance Method Details
#to_json(options = {}) ⇒ Object
234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 234 def to_json( = {}) { "correlation_id": @correlation_id, "phone_number": @phone_number, "fields": @fields, "country_code": @country_code, "identity_match": @identity_match, "reassigned_number": @reassigned_number, "sms_pumping_risk": @sms_pumping_risk, }.to_json() end |