Sha256: 6ea81008710dbb808c471bacb4080d1b5c2eb005009d4402a2205b45fd9bbbc4
Contents?: true
Size: 1.5 KB
Versions: 2
Compression:
Stored size: 1.5 KB
Contents
require_relative '../model' require_relative './bundle_id_capability' module Spaceship class ConnectAPI class BundleId include Spaceship::ConnectAPI::Model attr_accessor :identifier attr_accessor :name attr_accessor :seed_id attr_accessor :platform attr_accessor :bundle_id_capabilities attr_mapping({ "identifier" => "identifier", "name" => "name", "seedId" => "seed_id", "platform" => "platform", "bundleIdCapabilities" => 'bundle_id_capabilities' }) def self.type return "bundleIds" end # # Helpers # def supports_catalyst? return bundle_id_capabilities.any? do |capability| capability.is_type?(Spaceship::ConnectAPI::BundleIdCapability::Type::MARZIPAN) end end # # API # 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 def self.find(identifier, includes: nil) return all(filter: { identifier: identifier }, includes: includes).find do |app| app.identifier == identifier end end 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastlane_hotfix-2.165.1 | spaceship/lib/spaceship/connect_api/models/bundle_id.rb |
fastlane_hotfix-2.165.0 | spaceship/lib/spaceship/connect_api/models/bundle_id.rb |