Class: Twilio::REST::Lookups::V2::QueryList::IdentityMatch

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

Parameters:



70
71
72
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70

def address_line_match
  @address_line_match
end

#city_matchObject

Parameters:



70
71
72
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70

def city_match
  @city_match
end

#country_code_matchObject

Parameters:



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_matchObject

Parameters:



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_codeObject

Parameters:



70
71
72
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70

def error_code
  @error_code
end

#error_messageObject

Parameters:



70
71
72
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70

def error_message
  @error_message
end

#first_name_matchObject

Parameters:



70
71
72
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70

def first_name_match
  @first_name_match
end

#last_name_matchObject

Parameters:



70
71
72
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70

def last_name_match
  @last_name_match
end

#national_id_matchObject

Parameters:



70
71
72
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70

def national_id_match
  @national_id_match
end

#postal_code_matchObject

Parameters:



70
71
72
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70

def postal_code_match
  @postal_code_match
end

#state_matchObject

Parameters:



70
71
72
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 70

def state_match
  @state_match
end

#summary_scoreObject

Parameters:



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(options = {})
{
        "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(options)
end