Class: Twilio::REST::Lookups::V2::QueryList
- Inherits:
-
Twilio::REST::ListResource
- Object
- Twilio::REST::ListResource
- Twilio::REST::Lookups::V2::QueryList
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/query.rb
Defined Under Namespace
Classes: CallForwarding, CallerName, IdentityMatch, IdentityMatchParameters, LastSimSwap, LineStatus, LineTypeIntelligence, LookupRequest1, LookupRequestWithCorId, ReassignedNumberRequest, ReassignedNumberResponse, SimSwap, SmsPumpingRisk, SmsPumpingRiskParameters
Instance Method Summary collapse
-
#create(lookup_request1: :unset) ⇒ QueryInstance
Create the QueryInstance.
-
#initialize(version) ⇒ QueryList
constructor
Initialize the QueryList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ QueryList
Initialize the QueryList
350 351 352 353 354 355 356 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 350 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/batch/query" end |
Instance Method Details
#create(lookup_request1: :unset) ⇒ QueryInstance
Create the QueryInstance
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 361 def create(lookup_request1: :unset ) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' payload = @version.create('POST', @uri, headers: headers, data: lookup_request1.to_json) QueryInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
381 382 383 |
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 381 def to_s '#<Twilio.Lookups.V2.QueryList>' end |