Class: Telesign::PhoneID::Request

Inherits:
ApiRequest show all
Defined in:
lib/telesign/phone_id/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiRequest

#call, #driver, request_method

Constructor Details

#initialize(phone) ⇒ Request

Returns a new instance of Request.



12
13
14
15
# File 'lib/telesign/phone_id/request.rb', line 12

def initialize(phone)
  self.country_code = phone.country_code
  self.phone_number = phone.number
end

Instance Attribute Details

#country_codeObject Also known as: countryCode

Returns the value of attribute country_code.



7
8
9
# File 'lib/telesign/phone_id/request.rb', line 7

def country_code
  @country_code
end

#phone_numberObject Also known as: phoneNumber

Returns the value of attribute phone_number.



7
8
9
# File 'lib/telesign/phone_id/request.rb', line 7

def phone_number
  @phone_number
end