Sha256: f336b12a10054d3294c5c2636131245f456ba7acf9fbb7c4dd2d1250b49d00b9
Contents?: true
Size: 534 Bytes
Versions: 58
Compression:
Stored size: 534 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Shared class Territory attr_reader :code def initialize(territory_code) @code = territory_code end def contains?(territory_code) TerritoriesContainment.contains?(code, territory_code) end def parents TerritoriesContainment.parents(code) end def children TerritoriesContainment.children(code) end end end end
Version data entries
58 entries across 58 versions & 3 rubygems