Sha256: 0bc367775d2f286a923a5696c82c68362c4c3dbaf1bd9099fb522b5d63793c67

Contents?: true

Size: 927 Bytes

Versions: 330

Compression:

Stored size: 927 Bytes

Contents

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

330 entries across 330 versions & 1 rubygems

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