Class: Twilio::REST::Lookups::V2::QueryList::SimSwap
- Inherits:
-
Object
- Object
- Twilio::REST::Lookups::V2::QueryList::SimSwap
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Instance Attribute Summary collapse
- #carrier_name ⇒ Object
- #error_code ⇒ Object
- #last_sim_swap ⇒ Object
- #mobile_country_code ⇒ Object
- #mobile_network_code ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ SimSwap
constructor
A new instance of SimSwap.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ SimSwap
Returns a new instance of SimSwap.
286 287 288 289 290 291 292 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 286 def initialize(payload) @last_sim_swap = payload["last_sim_swap"] @carrier_name = payload["carrier_name"] @mobile_country_code = payload["mobile_country_code"] @mobile_network_code = payload["mobile_network_code"] @error_code = payload["error_code"] end |
Instance Attribute Details
#carrier_name ⇒ Object
285 286 287 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 285 def carrier_name @carrier_name end |
#error_code ⇒ Object
285 286 287 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 285 def error_code @error_code end |
#last_sim_swap ⇒ Object
285 286 287 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 285 def last_sim_swap @last_sim_swap end |
#mobile_country_code ⇒ Object
285 286 287 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 285 def mobile_country_code @mobile_country_code end |
#mobile_network_code ⇒ Object
285 286 287 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 285 def mobile_network_code @mobile_network_code end |
Instance Method Details
#to_json(options = {}) ⇒ Object
293 294 295 296 297 298 299 300 301 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 293 def to_json( = {}) { "last_sim_swap": @last_sim_swap, "carrier_name": @carrier_name, "mobile_country_code": @mobile_country_code, "mobile_network_code": @mobile_network_code, "error_code": @error_code, }.to_json() end |