Class: AddressFinder::V1::Phone::Verification

Inherits:
Base
  • Object
show all
Defined in:
lib/addressfinder/v1/phone/verification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#perform

Constructor Details

#initialize(phone_number:, default_country_code:, http:, **args) ⇒ Verification

Returns a new instance of Verification.



9
10
11
12
# File 'lib/addressfinder/v1/phone/verification.rb', line 9

def initialize(phone_number:, default_country_code:, http:, **args)
  params = {phone_number: phone_number, default_country_code: default_country_code}.merge(args)
  super(params: params, path: "/api/phone/v1/verification", http: http)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



7
8
9
# File 'lib/addressfinder/v1/phone/verification.rb', line 7

def result
  @result
end