Class: SmartId::Api::Authentication::IdentityNumber
- Defined in:
- lib/smart_id/api/authentication/identity_number.rb
Constant Summary collapse
- BASE_URI =
"authentication/pno"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(**opts) ⇒ IdentityNumber
constructor
A new instance of IdentityNumber.
Methods inherited from Base
Constructor Details
#initialize(**opts) ⇒ IdentityNumber
Returns a new instance of IdentityNumber.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/smart_id/api/authentication/identity_number.rb', line 11 def initialize(**opts) @country = opts[:country].upcase @identity_number = opts[:identity_number] unless @country && @identity_number raise InvalidParamsError end super(**opts) end |