Class: CoreExt::NumberHelper::NumberToPhoneConverter
- Inherits:
-
NumberConverter
- Object
- NumberConverter
- CoreExt::NumberHelper::NumberToPhoneConverter
- Defined in:
- lib/core_ext/number_helper/number_to_phone_converter.rb
Overview
:nodoc:
Constant Summary
Constants inherited from NumberConverter
CoreExt::NumberHelper::NumberConverter::DEFAULTS
Instance Attribute Summary
Attributes inherited from NumberConverter
Instance Method Summary collapse
Methods inherited from NumberConverter
convert, #execute, #initialize
Constructor Details
This class inherits a constructor from CoreExt::NumberHelper::NumberConverter
Instance Method Details
#convert ⇒ Object
4 5 6 7 8 |
# File 'lib/core_ext/number_helper/number_to_phone_converter.rb', line 4 def convert str = country_code(opts[:country_code]) str << convert_to_phone_number(number.to_s.strip) str << phone_ext(opts[:extension]) end |