Class: Yobi::ResticVersion

Inherits:
FancyHash show all
Defined in:
lib/yobi/restic.rb,
sig/yobi.rbs

Overview

The result of one Yobi::Restic#version call.

Instance Method Summary collapse

Methods inherited from FancyHash

#initialize, #inspect, #pretty_print

Constructor Details

This class inherits a constructor from Yobi::FancyHash

Instance Method Details

#go_archString?

The CPU architecture Restic was built for, if reported.

Returns:

  • (String, nil)


341
342
343
# File 'lib/yobi/restic.rb', line 341

def go_arch
  self["go_arch"]
end

#go_osString?

The OS Restic was built for, if reported.

Returns:

  • (String, nil)


336
337
338
# File 'lib/yobi/restic.rb', line 336

def go_os
  self["go_os"]
end

#go_versionString?

The Go compiler version Restic was built with, if reported.

Returns:

  • (String, nil)


331
332
333
# File 'lib/yobi/restic.rb', line 331

def go_version
  self["go_version"]
end

#versionString

The Restic version string, e.g. "0.19.1".

Returns:

  • (String)


326
327
328
# File 'lib/yobi/restic.rb', line 326

def version
  self["version"]
end