Sha256: e66603be60e841db03b89e694aed7e01dbe78d02d4a98bbc0082271b1b1ae643
Contents?: true
Size: 684 Bytes
Versions: 5
Compression:
Stored size: 684 Bytes
Contents
require_relative 'base' module Gitlab module Triage module Resource class InstanceVersion < Base def initialize(new_net) super({}, new_net) end def version response[:version] end def version_short version[/^\d+\.\d+/] end def revision response[:revision] end private # See https://gitlab.com/api/v4/version def response @response ||= network.query_api_cached( net[:token], "#{net[:host_url]}/api/#{net[:api_version]}/version") .first end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems