Module: Telize

Extended by:
Telize
Included in:
Telize
Defined in:
lib/telize.rb,
lib/telize/client.rb,
lib/telize/config.rb,
lib/telize/version.rb

Defined Under Namespace

Classes: Client, Config

Constant Summary collapse

VERSION =
"0.0.2"

Instance Method Summary collapse

Instance Method Details

#configObject



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

def config
  @config ||= Config.new
end

#configure {|config| ... } ⇒ Object

Yields:



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

def configure
  yield config
  @client = nil
end

#geoip(ip_address = nil) ⇒ Object



22
23
24
# File 'lib/telize.rb', line 22

def geoip(ip_address = nil)
  client.geoip(ip_address)
end

#ipObject



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

def ip
  client.ip
end