Sha256: f5f68de6edc9a8cd340e3e3527752072d9e9fcaebc9c67a786ae3ea4783048bc

Contents?: true

Size: 952 Bytes

Versions: 178

Compression:

Stored size: 952 Bytes

Contents

require_relative 'base'

module Spaceship::TestFlight
  class TestInfo < Base
    # TestInfo Contains a collection of info for testers. There is one "testInfo" for each locale.
    #
    # For now, when we set a value it sets the same value for all locales
    # When getting a value, we return the first locale values

    attr_accessor :description, :feedback_email, :whats_new

    def description
      raw_data.first['description']
    end

    def description=(value)
      raw_data.each { |locale| locale['description'] = value }
    end

    def feedback_email
      raw_data.first['feedbackEmail']
    end

    def feedback_email=(value)
      raw_data.each { |locale| locale['feedbackEmail'] = value }
    end

    def whats_new
      raw_data.first['whatsNew']
    end

    def whats_new=(value)
      raw_data.each { |locale| locale['whatsNew'] = value }
    end

    def deep_copy
      TestInfo.new(raw_data.map(&:dup))
    end
  end
end

Version data entries

178 entries across 178 versions & 1 rubygems

Version Path
fastlane-2.104.0 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.103.1 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.103.0 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.102.0 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.101.1 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.101.0 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.100.1 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.100.0 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.99.1 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.99.0 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.98.0 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.97.0 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.96.1 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.96.0 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.96.0.beta.20180521050117 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.96.0.beta.20180520050019 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.96.0.beta.20180519050103 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.96.0.beta.20180518050116 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.96.0.beta.20180517050058 spaceship/lib/spaceship/test_flight/test_info.rb
fastlane-2.96.0.beta.20180516050022 spaceship/lib/spaceship/test_flight/test_info.rb