Class: Twilio::REST::Lookups::V2::QueryList::LastSimSwap
- Inherits:
-
Object
- Object
- Twilio::REST::Lookups::V2::QueryList::LastSimSwap
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ LastSimSwap
constructor
A new instance of LastSimSwap.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ LastSimSwap
Returns a new instance of LastSimSwap.
148 149 150 151 152 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 148 def initialize(payload) @last_sim_swap_date = payload["last_sim_swap_date"] @swapped_period = payload["swapped_period"] @swapped_in_period = payload["swapped_in_period"] end |
Instance Attribute Details
#last_sim_swap_date ⇒ Object
147 148 149 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 147 def last_sim_swap_date @last_sim_swap_date end |
#swapped_in_period ⇒ Object
147 148 149 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 147 def swapped_in_period @swapped_in_period end |
#swapped_period ⇒ Object
147 148 149 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 147 def swapped_period @swapped_period end |
Instance Method Details
#to_json(options = {}) ⇒ Object
153 154 155 156 157 158 159 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 153 def to_json( = {}) { "last_sim_swap_date": @last_sim_swap_date, "swapped_period": @swapped_period, "swapped_in_period": @swapped_in_period, }.to_json() end |