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)


137
138
139
# File 'core-docs/toys/utils/git_cache.rb', line 137

def last_accessed
  @last_accessed
end

#last_updatedTime (readonly)

The timestamp when this ref was last updated

Returns:

  • (Time)


144
145
146
# File 'core-docs/toys/utils/git_cache.rb', line 144

def last_updated
  @last_updated
end

#refString (readonly)

The git ref

Returns:

  • (String)


123
124
125
# File 'core-docs/toys/utils/git_cache.rb', line 123

def ref
  @ref
end

#shaString (readonly)

The git sha last associated with the ref

Returns:

  • (String)


130
131
132
# File 'core-docs/toys/utils/git_cache.rb', line 130

def sha
  @sha
end

Instance Method Details

#<=>(other) ⇒ Integer

Comparison function

Parameters:

Returns:

  • (Integer)


161
162
163
# File 'core-docs/toys/utils/git_cache.rb', line 161

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

#to_hHash

Convert this RefInfo to a hash suitable for JSON output

Returns:

  • (Hash)


151
152
153
# File 'core-docs/toys/utils/git_cache.rb', line 151

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