Sha256: 0ca5228f3869b84b50db31d33aacb16536def72095472de6b9fec572990758ba

Contents?: true

Size: 1.21 KB

Versions: 3

Compression:

Stored size: 1.21 KB

Contents

require_relative '../model'
module Spaceship
  class ConnectAPI
    class BetaTesterMetric
      include Spaceship::ConnectAPI::Model

      attr_accessor :install_count
      attr_accessor :crash_count
      attr_accessor :session_count
      attr_accessor :beta_tester_state
      attr_accessor :last_modified_date
      attr_accessor :installed_cf_bundle_short_version_string
      attr_accessor :installed_cf_bundle_version

      attr_mapping({
        "installCount" => "install_count",
        "crashCount" => "crash_count",
        "sessionCount" => "session_count",
        "betaTesterState" => "beta_tester_state",
        "lastModifiedDate" => "last_modified_date",
        "installedCfBundleShortVersionString" => "installed_cf_bundle_short_version_string",
        "installedCfBundleVersion" => "installed_cf_bundle_version"
      })

      module BetaTesterState
        INSTALLED = "INSTALLED"
        INVITED = "INVITED"
        NO_BUILDS = "NO_BUILDS"
      end

      def self.type
        return "betaTesterMetrics"
      end

      #
      # Helpers
      #

      def installed?
        return beta_tester_state == BetaTesterState::INSTALLED
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 spaceship/lib/spaceship/connect_api/models/beta_tester_metric.rb
fastlane_hotfix-2.165.0 spaceship/lib/spaceship/connect_api/models/beta_tester_metric.rb
fastlane_hotfix-2.187.0 spaceship/lib/spaceship/connect_api/models/beta_tester_metric.rb