Class: Twilio::REST::Lookups::V2::QueryList::ReassignedNumberResponse
- Inherits:
-
Object
- Object
- Twilio::REST::Lookups::V2::QueryList::ReassignedNumberResponse
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ ReassignedNumberResponse
constructor
A new instance of ReassignedNumberResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ReassignedNumberResponse
Returns a new instance of ReassignedNumberResponse.
265 266 267 268 269 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 265 def initialize(payload) @last_verified_date = payload["last_verified_date"] @is_number_reassigned = payload["is_number_reassigned"] @error_code = payload["error_code"] end |
Instance Attribute Details
#error_code ⇒ Object
264 265 266 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 264 def error_code @error_code end |
#is_number_reassigned ⇒ Object
264 265 266 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 264 def is_number_reassigned @is_number_reassigned end |
#last_verified_date ⇒ Object
264 265 266 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 264 def last_verified_date @last_verified_date end |
Instance Method Details
#to_json(options = {}) ⇒ Object
270 271 272 273 274 275 276 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 270 def to_json( = {}) { "last_verified_date": @last_verified_date, "is_number_reassigned": @is_number_reassigned, "error_code": @error_code, }.to_json() end |