Class: IPDB::City

Inherits:
Object
  • Object
show all
Defined in:
lib/ipdb/city.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ City

Returns a new instance of City.



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

def initialize(name)
  @db = Reader.new name
end

Instance Method Details

#find(ipx, lang) ⇒ Object



11
12
13
# File 'lib/ipdb/city.rb', line 11

def find(ipx, lang)
  @db.find ipx, lang
end

#metaObject



15
16
17
# File 'lib/ipdb/city.rb', line 15

def meta
  @db.meta
end