Class: Spaceship::ConnectAPI::BundleId
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::BundleId
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/bundle_id.rb
Instance Attribute Summary collapse
-
#bundle_id_capabilities ⇒ Object
Returns the value of attribute bundle_id_capabilities.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#seed_id ⇒ Object
Returns the value of attribute seed_id.
Attributes included from Model
Class Method Summary collapse
-
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API.
- .find(identifier, includes: nil) ⇒ Object
- .get(bundle_id_id: nil, includes: nil) ⇒ Object
- .type ⇒ Object
Instance Method Summary collapse
-
#supports_catalyst? ⇒ Boolean
Helpers.
Methods included from Model
#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes
Instance Attribute Details
#bundle_id_capabilities ⇒ Object
Returns the value of attribute bundle_id_capabilities.
13 14 15 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 13 def bundle_id_capabilities @bundle_id_capabilities end |
#identifier ⇒ Object
Returns the value of attribute identifier.
8 9 10 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 8 def identifier @identifier end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 9 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 11 def platform @platform end |
#seed_id ⇒ Object
Returns the value of attribute seed_id.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 10 def seed_id @seed_id end |
Class Method Details
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API
42 43 44 45 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 42 def self.all(filter: {}, includes: nil, limit: nil, sort: nil) resps = Spaceship::ConnectAPI.get_bundle_ids(filter: filter, includes: includes).all_pages return resps.flat_map(&:to_models) end |
.find(identifier, includes: nil) ⇒ Object
47 48 49 50 51 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 47 def self.find(identifier, includes: nil) return all(filter: { identifier: identifier }, includes: includes).find do |app| app.identifier == identifier end end |
.get(bundle_id_id: nil, includes: nil) ⇒ Object
53 54 55 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 53 def self.get(bundle_id_id: nil, includes: nil) return Spaceship::ConnectAPI.get_bundle_id(bundle_id_id: bundle_id_id, includes: includes).first end |
.type ⇒ Object
24 25 26 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 24 def self.type return "bundleIds" end |
Instance Method Details
#supports_catalyst? ⇒ Boolean
Helpers
32 33 34 35 36 |
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 32 def supports_catalyst? return bundle_id_capabilities.any? do |capability| capability.is_type?(Spaceship::ConnectAPI::BundleIdCapability::Type::MARZIPAN) end end |