Sha256: b93be05cfe2f5a0ff32193bc004ff207e503ecf492ac801ec14fe890aa8c2766

Contents?: true

Size: 325 Bytes

Versions: 4

Compression:

Stored size: 325 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-3.3.0 lib/twitter_cldr/js/mustache/implementation/shared/phone_codes.coffee
twitter_cldr_js-3.2.0 lib/twitter_cldr/js/mustache/implementation/shared/phone_codes.coffee
twitter_cldr_js-3.1.1 lib/twitter_cldr/js/mustache/implementation/shared/phone_codes.coffee
twitter_cldr_js-3.1.0 lib/twitter_cldr/js/mustache/implementation/shared/phone_codes.coffee