Sha256: 32055091e31b34de6371a3b25f4f3e9ceba79be398add5fe8bc2997aec3b6083

Contents?: true

Size: 793 Bytes

Versions: 3

Compression:

Stored size: 793 Bytes

Contents

require_relative 'iap_subscription_pricing_info'

module Spaceship
  module Tunes
    class IAPSubscriptionPricingTier < TunesBase
      # @return (String) Number of the subscription price tier (e.g. "1" for Tier 1 )
      attr_accessor :tier_stem

      # @return (String) Name of the tier (e.g. "ITC.addons.pricing.tier.1" for Tier 1)
      attr_accessor :tier_name

      # @return ([Spaceship::Tunes::IAPSubscriptionPricingInfo]) 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| IAPSubscriptionPricingInfo.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/iap_subscription_pricing_tier.rb
fastlane_hotfix-2.165.0 spaceship/lib/spaceship/tunes/iap_subscription_pricing_tier.rb
fastlane_hotfix-2.187.0 spaceship/lib/spaceship/tunes/iap_subscription_pricing_tier.rb