Class: Spaceship::TestFlight::AppTestInfo

Inherits:
Base
  • Object
show all
Defined in:
spaceship/lib/spaceship/test_flight/app_test_info.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#client, #raw_data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

client, inherited, #to_json

Methods inherited from Base

attr_accessor, attr_mapping, attributes, #attributes, factory, #initialize, #inspect, mapping_module, method_missing, set_client, #setup, #to_s

Constructor Details

This class inherits a constructor from Spaceship::Base

Instance Attribute Details

#beta_review_infoObject

Returns the value of attribute beta_review_info.



12
13
14
# File 'spaceship/lib/spaceship/test_flight/app_test_info.rb', line 12

def beta_review_info
  @beta_review_info
end

#test_infoObject

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



11
12
13
# File 'spaceship/lib/spaceship/test_flight/app_test_info.rb', line 11

def test_info
  @test_info
end

Class Method Details

.find(app_id: nil) ⇒ Object



14
15
16
17
# File 'spaceship/lib/spaceship/test_flight/app_test_info.rb', line 14

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

Instance Method Details

#save_for_app!(app_id: nil) ⇒ Object

saves the changes to the App Test Info object to TestFlight



36
37
38
# File 'spaceship/lib/spaceship/test_flight/app_test_info.rb', line 36

def save_for_app!(app_id: nil)
  client.put_app_test_info(app_id: app_id, app_test_info: self)
end