Sha256: 57eff2229a5ad2ee3197dec9d76c33f824b1694fd5c1edec77cd3fcfd953e381
Contents?: true
Size: 705 Bytes
Versions: 13
Compression:
Stored size: 705 Bytes
Contents
# Copyright (c) 2021 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
13 entries across 13 versions & 1 rubygems