Sha256: 05db9e7820f7f6fe0f083d3300c547f4c7f26445092b8508fda6ca50a3a69efa
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
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, :privacy_policy_url, :marketing_url 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 privacy_policy_url raw_data.first['privacyPolicyUrl'] end def privacy_policy_url=(value) raw_data.each { |locale| locale['privacyPolicyUrl'] = value } end def marketing_url raw_data.first['marketingUrl'] end def marketing_url=(value) raw_data.each { |locale| locale['marketingUrl'] = 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
3 entries across 3 versions & 1 rubygems