Class: Spaceship::ConnectAPI::App
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::App
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/app.rb
Instance Attribute Summary collapse
-
#bundle_id ⇒ Object
Returns the value of attribute bundle_id.
-
#is_aag ⇒ Object
Returns the value of attribute is_aag.
-
#name ⇒ Object
Returns the value of attribute name.
-
#primary_locale ⇒ Object
Returns the value of attribute primary_locale.
-
#removed ⇒ Object
Returns the value of attribute removed.
-
#sku ⇒ Object
Returns the value of attribute sku.
Attributes included from Model
Class Method Summary collapse
-
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
Apps.
- .find(bundle_id) ⇒ Object
- .get(app_id: nil, includes: nil) ⇒ Object
- .type ⇒ Object
Instance Method Summary collapse
- #create_beta_group(group_name: nil, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false) ⇒ Object
- #get_beta_app_localizations(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
-
#get_beta_feedback(filter: {}, includes: "tester,build,screenshots", limit: nil, sort: nil) ⇒ Object
Beta Feedback.
- #get_beta_groups(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
-
#get_beta_testers(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
Beta Testers.
- #get_build_deliveries(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
-
#get_builds(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
Builds.
Methods included from Model
#attr_mapping, included, #initialize, #to_json, #update_attributes
Instance Attribute Details
#bundle_id ⇒ Object
Returns the value of attribute bundle_id.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 10 def bundle_id @bundle_id end |
#is_aag ⇒ Object
Returns the value of attribute is_aag.
14 15 16 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 14 def is_aag @is_aag end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 9 def name @name end |
#primary_locale ⇒ Object
Returns the value of attribute primary_locale.
12 13 14 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 12 def primary_locale @primary_locale end |
#removed ⇒ Object
Returns the value of attribute removed.
13 14 15 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 13 def removed @removed end |
#sku ⇒ Object
Returns the value of attribute sku.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 11 def sku @sku end |
Class Method Details
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
Apps
33 34 35 36 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 33 def self.all(filter: {}, includes: nil, limit: nil, sort: nil) resps = Spaceship::ConnectAPI.get_apps(filter: filter, includes: includes, limit: limit, sort: sort).all_pages return resps.flat_map(&:to_models) end |
.find(bundle_id) ⇒ Object
38 39 40 41 42 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 38 def self.find(bundle_id) return all(filter: { bundleId: bundle_id }).find do |app| app.bundle_id == bundle_id end end |
.get(app_id: nil, includes: nil) ⇒ Object
44 45 46 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 44 def self.get(app_id: nil, includes: nil) return Spaceship::ConnectAPI.get_app(app_id: app_id, includes: includes).first end |
.type ⇒ Object
25 26 27 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 25 def self.type return "apps" end |
Instance Method Details
#create_beta_group(group_name: nil, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false) ⇒ Object
107 108 109 110 111 112 113 114 115 116 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 107 def create_beta_group(group_name: nil, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false) resps = Spaceship::ConnectAPI.create_beta_group( app_id: id, group_name: group_name, public_link_enabled: public_link_enabled, public_link_limit: public_link_limit, public_link_limit_enabled: public_link_limit_enabled ).all_pages return resps.flat_map(&:to_models).first end |
#get_beta_app_localizations(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
91 92 93 94 95 96 97 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 91 def get_beta_app_localizations(filter: {}, includes: nil, limit: nil, sort: nil) filter ||= {} filter[:app] = id resps = Spaceship::ConnectAPI.get_beta_app_localizations(filter: filter, includes: includes, limit: limit, sort: sort).all_pages return resps.flat_map(&:to_models) end |
#get_beta_feedback(filter: {}, includes: "tester,build,screenshots", limit: nil, sort: nil) ⇒ Object
Beta Feedback
51 52 53 54 55 56 57 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 51 def get_beta_feedback(filter: {}, includes: "tester,build,screenshots", limit: nil, sort: nil) filter ||= {} filter["build.app"] = id resps = Spaceship::ConnectAPI.get_beta_feedback(filter: filter, includes: includes, limit: limit, sort: sort).all_pages return resps.flat_map(&:to_models) end |
#get_beta_groups(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
99 100 101 102 103 104 105 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 99 def get_beta_groups(filter: {}, includes: nil, limit: nil, sort: nil) filter ||= {} filter[:app] = id resps = Spaceship::ConnectAPI.get_beta_groups(filter: filter, includes: includes, limit: limit, sort: sort).all_pages return resps.flat_map(&:to_models) end |
#get_beta_testers(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
Beta Testers
63 64 65 66 67 68 69 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 63 def get_beta_testers(filter: {}, includes: nil, limit: nil, sort: nil) filter ||= {} filter[:apps] = id resps = Spaceship::ConnectAPI.get_beta_testers(filter: filter, includes: includes, limit: limit, sort: sort).all_pages return resps.flat_map(&:to_models) end |
#get_build_deliveries(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
83 84 85 86 87 88 89 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 83 def get_build_deliveries(filter: {}, includes: nil, limit: nil, sort: nil) filter ||= {} filter[:app] = id resps = Spaceship::ConnectAPI.get_build_deliveries(filter: filter, includes: includes, limit: limit, sort: sort).all_pages return resps.flat_map(&:to_models) end |
#get_builds(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
Builds
75 76 77 78 79 80 81 |
# File 'spaceship/lib/spaceship/connect_api/models/app.rb', line 75 def get_builds(filter: {}, includes: nil, limit: nil, sort: nil) filter ||= {} filter[:app] = id resps = Spaceship::ConnectAPI.get_builds(filter: filter, includes: includes, limit: limit, sort: sort).all_pages return resps.flat_map(&:to_models) end |