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