Class: Twilio::REST::Lookups::V2::QueryList::LookupRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/lookups/v2/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numbersObject

Parameters:



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(options = {})
{
        "phone_numbers": @phone_numbers,
}.to_json(options)
end