Class: Twilio::REST::Lookups::V2::QueryList::LookupRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Lookups::V2::QueryList::LookupRequest
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ LookupRequest
constructor
A new instance of LookupRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ LookupRequest
Returns a new instance of LookupRequest.
115 116 117 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 115 def initialize(payload) @phone_numbers = payload["phone_numbers"] end |
Instance Attribute Details
#phone_numbers ⇒ Object
114 115 116 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 114 def phone_numbers @phone_numbers end |
Instance Method Details
#to_json(options = {}) ⇒ Object
118 119 120 121 122 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 118 def to_json( = {}) { "phone_numbers": @phone_numbers, }.to_json() end |