Module: PhoneConnect

Defined in:
lib/phone_connect.rb,
lib/phone_connect/version.rb,
lib/phone_connect/configuration.rb,
lib/phone_connect/real_phone_validation.rb

Defined Under Namespace

Classes: Configuration, RealPhoneValidation

Constant Summary collapse

VERSION =
"1.0.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



7
8
9
# File 'lib/phone_connect.rb', line 7

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



9
10
11
12
# File 'lib/phone_connect.rb', line 9

def configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.fetch(phone_number) ⇒ Object



18
19
20
# File 'lib/phone_connect.rb', line 18

def fetch(phone_number)
  PhoneConnect::RealPhoneValidation.new(phone_number)
end

.resetObject



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

def reset
  @configuration = Configuration.new
end