Sha256: 20ca434ec531911ebe460beeac6f60de7881b915a9f8093e58eefa7efe95a15f

Contents?: true

Size: 720 Bytes

Versions: 3

Compression:

Stored size: 720 Bytes

Contents

require_relative 'pricing_info'

module Spaceship
  module Tunes
    class PricingTier < TunesBase
      # @return (String) Number of the price Tier (e.g. "0" for Tier 0 aka Free)
      attr_accessor :tier_stem

      # @return (String) Name of the tier (e.g. "Free" for Tier 0)
      attr_accessor :tier_name

      # @return (Array of Spaceship::Tunes::PricingInfo objects) A list of all prices for the respective countries
      attr_accessor :pricing_info

      attr_mapping(
        'tierStem' => :tier_stem,
        'tierName' => :tier_name
      )

      def pricing_info
        @pricing_info ||= raw_data['pricingInfo'].map { |info| PricingInfo.new(info) }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane_hotfix-2.165.0 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane_hotfix-2.187.0 spaceship/lib/spaceship/tunes/pricing_tier.rb