Sha256: d4df0d484abed3d56c0a686e88ca4f72ad531a72762e5e690d22c177e9ed26c0

Contents?: true

Size: 324 Bytes

Versions: 4

Compression:

Stored size: 324 Bytes

Contents

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

class TwitterCldr.PhoneCodes
  @phone_codes = `{{{phone_codes}}}`

  @territories: ->
    @codes ||= (data for data, _ of @phone_codes)

  @code_for_territory: (territory) ->
    result = @phone_codes[territory]
    if result? then result else null

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter_cldr_js-2.4.0 lib/twitter_cldr/js/mustache/shared/phone_codes.coffee
twitter_cldr_js-2.3.2 lib/twitter_cldr/js/mustache/shared/phone_codes.coffee
twitter_cldr_js-2.3.1 lib/twitter_cldr/js/mustache/shared/phone_codes.coffee
twitter_cldr_js-2.3.0 lib/twitter_cldr/js/mustache/shared/phone_codes.coffee