Class: Twilio::REST::Lookups::V2::QueryList::IdentityMatchParameters
- Inherits:
-
Object
- Object
- Twilio::REST::Lookups::V2::QueryList::IdentityMatchParameters
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Instance Attribute Summary collapse
- #address_country_code ⇒ Object
- #address_line1 ⇒ Object
- #address_line2 ⇒ Object
- #city ⇒ Object
- #date_of_birth ⇒ Object
- #first_name ⇒ Object
- #last_name ⇒ Object
- #national_id ⇒ Object
- #postal_code ⇒ Object
- #state ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ IdentityMatchParameters
constructor
A new instance of IdentityMatchParameters.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ IdentityMatchParameters
Returns a new instance of IdentityMatchParameters.
115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 115 def initialize(payload) @first_name = payload["first_name"] @last_name = payload["last_name"] @address_line1 = payload["address_line1"] @address_line2 = payload["address_line2"] @city = payload["city"] @state = payload["state"] @postal_code = payload["postal_code"] @address_country_code = payload["address_country_code"] @national_id = payload["national_id"] @date_of_birth = payload["date_of_birth"] end |
Instance Attribute Details
#address_country_code ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def address_country_code @address_country_code end |
#address_line1 ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def address_line1 @address_line1 end |
#address_line2 ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def address_line2 @address_line2 end |
#city ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def city @city end |
#date_of_birth ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def date_of_birth @date_of_birth end |
#first_name ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def first_name @first_name end |
#last_name ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def last_name @last_name end |
#national_id ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def national_id @national_id end |
#postal_code ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def postal_code @postal_code end |
#state ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def state @state end |
Instance Method Details
#to_json(options = {}) ⇒ Object
127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 127 def to_json( = {}) { "first_name": @first_name, "last_name": @last_name, "address_line1": @address_line1, "address_line2": @address_line2, "city": @city, "state": @state, "postal_code": @postal_code, "address_country_code": @address_country_code, "national_id": @national_id, "date_of_birth": @date_of_birth, }.to_json() end |