Method: Unit::Types::Phone#initialize
- Defined in:
- lib/unit-ruby/types/phone.rb
#initialize(country_code:, number:) ⇒ Phone
Returns a new instance of Phone.
6 7 8 9 |
# File 'lib/unit-ruby/types/phone.rb', line 6 def initialize(country_code:, number:) @country_code = country_code @number = number end |