Class: Telenor
- Inherits:
-
Object
- Object
- Telenor
- Includes:
- ConstantVariables
- Defined in:
- lib/telecoms/telenor.rb
Constant Summary
Constants included from ConstantVariables
ConstantVariables::COUNTRY_CODE_REGEX, ConstantVariables::DOUBLE_COUNTRY_CODE_REGEX, ConstantVariables::MM_PHONE_REGEX, ConstantVariables::MPT_REGEX, ConstantVariables::OOREDOO_REGEX, ConstantVariables::TELENOR_REGEX, ConstantVariables::ZERO_BEFORE_AREACODE_REGEX
Class Method Summary collapse
Class Method Details
.check(phone_number) ⇒ Object
6 7 8 9 |
# File 'lib/telecoms/telenor.rb', line 6 def self.check(phone_number) p "Telenor" phone_number =~ TELENOR_REGEX ? true : false end |