Class: TellIo::Countries::Country

Inherits:
Object
  • Object
show all
Defined in:
lib/countries/country.rb

Direct Known Subclasses

Brazil, Usa

Class Method Summary collapse

Class Method Details

.format(phone) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/countries/country.rb', line 10

def self.format(phone)
  raise NotImplementedError, "Each country must implement the `format` method"
end

.generateObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/countries/country.rb', line 14

def self.generate
  raise NotImplementedError, "Each country must implement the `generate` method"
end

.valid?(phone) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/countries/country.rb', line 6

def self.valid?(phone)
  raise NotImplementedError, "Each country must implement the `valid?` method"
end