class Spaceship::Tunes::Territory

Attributes

code[RW]

@return (String) The two-character country code (e.g. “US” for the United States)

currency_code[RW]

@return (String) The ISO 3166-1 alpha-3 currency code (e.g. “USD” for the United States)

name[RW]

@return (String) The country name (e.g. “United States” for the United States)

region[RW]

@return (String) The region (e.g. “The United States and Canada” for the United States)

region_locale_key[RW]

@return (String) The region locale key (e.g. “ITC.region.NAM” for the United States)

Public Class Methods

from_code(code) click to toggle source

Create a new object based on a two-character country code (e.g. “US” for the United States)

# File spaceship/lib/spaceship/tunes/territory.rb, line 31
def from_code(code)
  obj = self.new
  obj.code = code
  return obj
end