Class: Twilio::REST::Lookups::V2::QueryList::IdentityMatch
- Inherits:
-
Object
- Object
- Twilio::REST::Lookups::V2::QueryList::IdentityMatch
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Instance Attribute Summary collapse
- #address_line_match ⇒ Object
- #city_match ⇒ Object
- #country_code_match ⇒ Object
- #date_of_birth_match ⇒ Object
- #error_code ⇒ Object
- #error_message ⇒ Object
- #first_name_match ⇒ Object
- #last_name_match ⇒ Object
- #national_id_match ⇒ Object
- #postal_code_match ⇒ Object
- #state_match ⇒ Object
- #summary_score ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ IdentityMatch
constructor
A new instance of IdentityMatch.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ IdentityMatch
Returns a new instance of IdentityMatch.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 71 def initialize(payload) @first_name_match = payload["first_name_match"] @last_name_match = payload["last_name_match"] @address_line_match = payload["address_line_match"] @city_match = payload["city_match"] @state_match = payload["state_match"] @postal_code_match = payload["postal_code_match"] @country_code_match = payload["country_code_match"] @national_id_match = payload["national_id_match"] @date_of_birth_match = payload["date_of_birth_match"] @summary_score = payload["summary_score"] @error_code = payload["error_code"] @error_message = payload["error_message"] end |
Instance Attribute Details
#address_line_match ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def address_line_match @address_line_match end |
#city_match ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def city_match @city_match end |
#country_code_match ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def country_code_match @country_code_match end |
#date_of_birth_match ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def date_of_birth_match @date_of_birth_match end |
#error_code ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def error_code @error_code end |
#error_message ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def @error_message end |
#first_name_match ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def first_name_match @first_name_match end |
#last_name_match ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def last_name_match @last_name_match end |
#national_id_match ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def national_id_match @national_id_match end |
#postal_code_match ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def postal_code_match @postal_code_match end |
#state_match ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def state_match @state_match end |
#summary_score ⇒ Object
70 71 72 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70 def summary_score @summary_score end |
Instance Method Details
#to_json(options = {}) ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 85 def to_json( = {}) { "first_name_match": @first_name_match, "last_name_match": @last_name_match, "address_line_match": @address_line_match, "city_match": @city_match, "state_match": @state_match, "postal_code_match": @postal_code_match, "country_code_match": @country_code_match, "national_id_match": @national_id_match, "date_of_birth_match": @date_of_birth_match, "summary_score": @summary_score, "error_code": @error_code, "error_message": @error_message, }.to_json() end |