Sha256: 9f3d7d08a96fbf2d5a3612bd53581b3d2d73bb10f766dd420f797bf734b3c5d0

Contents?: true

Size: 705 Bytes

Versions: 18

Compression:

Stored size: 705 Bytes

Contents

# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

module Contrast
  module Framework
    # Used to map version strings from frameworks to ApplicationUpdate dtm
    class PlatformVersion
      attr_reader :major, :minor, :patch

      def initialize major, minor, patch
        @major = major || ''
        @minor = minor || ''
        @patch = patch || ''
      end

      def self.from_string platform_version_string
        version_array = platform_version_string.split(Contrast::Utils::ObjectShare::PERIOD)
        new(version_array[0], version_array[1], version_array[2])
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
contrast-agent-4.4.1 lib/contrast/framework/platform_version.rb
contrast-agent-4.4.0 lib/contrast/framework/platform_version.rb
contrast-agent-4.3.2 lib/contrast/framework/platform_version.rb
contrast-agent-4.3.1 lib/contrast/framework/platform_version.rb
contrast-agent-4.3.0 lib/contrast/framework/platform_version.rb
contrast-agent-4.2.0 lib/contrast/framework/platform_version.rb
contrast-agent-4.1.0 lib/contrast/framework/platform_version.rb
contrast-agent-4.0.0 lib/contrast/framework/platform_version.rb
contrast-agent-3.16.0 lib/contrast/framework/platform_version.rb
contrast-agent-3.15.0 lib/contrast/framework/platform_version.rb
contrast-agent-3.14.0 lib/contrast/framework/platform_version.rb
contrast-agent-3.13.2 lib/contrast/framework/platform_version.rb
contrast-agent-3.13.1 lib/contrast/framework/platform_version.rb
contrast-agent-3.13.0 lib/contrast/framework/platform_version.rb
contrast-agent-3.12.2 lib/contrast/framework/platform_version.rb
contrast-agent-3.12.1 lib/contrast/framework/platform_version.rb
contrast-agent-3.12.0 lib/contrast/framework/platform_version.rb
contrast-agent-3.11.0 lib/contrast/framework/platform_version.rb