Class: Toys::Utils::GitCache::RefInfo

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
core-docs/toys/utils/git_cache.rb

Overview

Defined in the toys-core gem

Information about a git ref used in a cache.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#last_accessedTime? (readonly)

The timestamp when this ref was last accessed

Returns:

  • (Time, nil)


286
287
288
# File 'core-docs/toys/utils/git_cache.rb', line 286

def last_accessed
  @last_accessed
end

#last_updatedTime? (readonly)

The timestamp when this ref was last updated

Returns:

  • (Time, nil)


293
294
295
# File 'core-docs/toys/utils/git_cache.rb', line 293

def last_updated
  @last_updated
end

#refString (readonly)

The git ref

Returns:

  • (String)


272
273
274
# File 'core-docs/toys/utils/git_cache.rb', line 272

def ref
  @ref
end

#shaString (readonly)

The git sha last associated with the ref

Returns:

  • (String)


279
280
281
# File 'core-docs/toys/utils/git_cache.rb', line 279

def sha
  @sha
end

Instance Method Details

#<=>(other) ⇒ Integer

Comparison function

Parameters:

Returns:

  • (Integer)


310
311
312
# File 'core-docs/toys/utils/git_cache.rb', line 310

def <=>(other)
  # Source available in the toys-core gem
end

#to_hHash

Convert this RefInfo to a hash suitable for JSON output

Returns:

  • (Hash)


300
301
302
# File 'core-docs/toys/utils/git_cache.rb', line 300

def to_h
  # Source available in the toys-core gem
end