Sha256: be281b9373c2651c66488804aaebcab22fe77345b618ff243ecf158c70a3a1d4
Contents?: true
Size: 1.05 KB
Versions: 133
Compression:
Stored size: 1.05 KB
Contents
module Spaceship::TestFlight class AppTestInfo < Base # AppTestInfo wraps a test_info and beta_review_info in the format required to manage test_info # for an application. Note that this structure, although looking similar to build test_info # is test information about the application attr_accessor :test_info attr_accessor :beta_review_info def self.find(app_id: nil) raw_app_test_info = client.get_app_test_info(app_id: app_id) self.new(raw_app_test_info) end def test_info Spaceship::TestFlight::TestInfo.new(raw_data['details']) end def test_info=(value) raw_data.set(['details'], value.raw_data) end def beta_review_info Spaceship::TestFlight::BetaReviewInfo.new(raw_data['betaReviewInfo']) end def beta_review_info=(value) raw_data.set(['betaReviewInfo'], value.raw_data) end # saves the changes to the App Test Info object to TestFlight def save_for_app!(app_id: nil) client.put_app_test_info(app_id: app_id, app_test_info: self) end end end
Version data entries
133 entries across 133 versions & 1 rubygems