Sha256: d80549a373e482d1655c47f6ab87ee0e3700a088c5184436a032808049d1d9fb

Contents?: true

Size: 1.12 KB

Versions: 431

Compression:

Stored size: 1.12 KB

Contents

module Spaceship
  module Tunes
    class Territory < TunesBase
      # @return (String) The two-character country code (e.g. "US" for the United States)
      attr_accessor :code

      # @return (String) The ISO 3166-1 alpha-3 currency code (e.g. "USD" for the United States)
      attr_accessor :currency_code

      # @return (String) The country name (e.g. "United States" for the United States)
      attr_accessor :name

      # @return (String) The region (e.g. "The United States and Canada" for the United States)
      attr_accessor :region

      # @return (String) The region locale key (e.g. "ITC.region.NAM" for the United States)
      attr_accessor :region_locale_key

      attr_mapping(
        'code' => :code,
        'currencyCodeISO3A' => :currency_code,
        'name' => :name,
        'region' => :region,
        'regionLocaleKey' => :region_locale_key
      )

      class << self
        # Create a new object based on a two-character country code (e.g. "US" for the United States)
        def from_code(code)
          obj = self.new
          obj.code = code
          return obj
        end
      end
    end
  end
end

Version data entries

431 entries across 431 versions & 1 rubygems

Version Path
fastlane-2.74.0.beta.20180106010004 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.73.0 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.73.0.beta.20180105010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.73.0.beta.20180104010004 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.73.0.beta.20180103010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.72.0 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.72.0.beta.20180102010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.72.0.beta.20180101010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.72.0.beta.20171231010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.71.1 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.72.0.beta.20171230010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.72.0.beta.20171229010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.72.0.beta.20171228010004 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.71.0 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.71.0.beta.20171227010004 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.71.0.beta.20171226010004 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.71.0.beta.20171225010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.71.0.beta.20171224010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.71.0.beta.20171223010003 spaceship/lib/spaceship/tunes/territory.rb
fastlane-2.71.0.beta.20171222010003 spaceship/lib/spaceship/tunes/territory.rb