Sha256: 055a9d273feb69fd2636a64aae315f2d0917d08516306c1c7e9277e6c64e2887

Contents?: true

Size: 695 Bytes

Versions: 660

Compression:

Stored size: 695 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

660 entries across 660 versions & 5 rubygems

Version Path
fastlane-2.77.1 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.77.0 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.77.0.beta.20180118010004 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.77.0.beta.20180117010004 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.76.1 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.76.0 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.76.0.beta.20180116010004 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.76.0.beta.20180115010004 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.76.0.beta.20180114010004 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.76.0.beta.20180113010004 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.76.0.beta.20180112010003 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.76.0.beta.20180111010004 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.76.0.beta.20180110010004 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.75.1 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.75.0 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.75.0.beta.20180109010003 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.74.1 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.74.0 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.74.0.beta.20180108010004 spaceship/lib/spaceship/tunes/pricing_tier.rb
fastlane-2.74.0.beta.20180107010004 spaceship/lib/spaceship/tunes/pricing_tier.rb