Class: Telesign::PhoneID::Response

Inherits:
ApiResponse show all
Defined in:
lib/telesign/phone_id/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiResponse

#initialize, #raise_exceptions, response_method

Constructor Details

This class inherits a constructor from Telesign::ApiResponse

Instance Attribute Details

#phone_typeObject (readonly)

Returns the value of attribute phone_type.



24
25
26
# File 'lib/telesign/phone_id/response.rb', line 24

def phone_type
  @phone_type
end

Instance Method Details

#after_initializeObject



26
27
28
# File 'lib/telesign/phone_id/response.rb', line 26

def after_initialize
  @phone_type = Telesign::PhoneType.type_for_code(@response.typeofPhone)
end