Sha256: 7beb884b7189d3cfe93aa37b78c4df3cc9b00f9706426269065b9174895c7d54

Contents?: true

Size: 580 Bytes

Versions: 59

Compression:

Stored size: 580 Bytes

Contents

require_relative '../model'

module Spaceship
  class ConnectAPI
    class Capabilities
      include Spaceship::ConnectAPI::Model

      attr_accessor :name
      attr_accessor :description

      attr_mapping({
        "name" => "name",
        "description" => "description",
      })

      def self.type
        return "capabilities"
      end

      def self.all(client: nil)
        client ||= Spaceship::ConnectAPI
        resp = client.get_available_bundle_id_capabilities(bundle_id_id: id).all_pages
        return resp.flat_map(&:to_models)
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 4 rubygems

Version Path
fastlane-2.212.1 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.212.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.211.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.210.1 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.210.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.209.1 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.209.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.208.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.207.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.206.2 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.206.1 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.206.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.205.2 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.205.1 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.205.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.204.3 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.204.2 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.204.1 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.204.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb
fastlane-2.203.0 spaceship/lib/spaceship/connect_api/models/capabilities.rb