Class: Yobi::LsOutcome

Inherits:
Struct
  • Object
show all
Defined in:
lib/yobi/repository/ls.rb,
sig/yobi.rbs

Overview

The outcome of one Repository#ls call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exit_codeObject

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



41
42
43
# File 'lib/yobi/repository/ls.rb', line 41

def exit_code
  @exit_code
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



41
42
43
# File 'lib/yobi/repository/ls.rb', line 41

def output
  @output
end

Instance Method Details

#entriesEnumerable<Yobi::LsEntry>

Returns:



48
49
50
# File 'lib/yobi/repository/ls.rb', line 48

def entries
  @entries ||= LsEntries.new(output)
end

#snapshotYobi::Snapshot

Returns the resolved snapshot, useful when snapshot_id: was "latest".

Returns:

  • (Yobi::Snapshot)

    the resolved snapshot, useful when snapshot_id: was "latest"



43
44
45
# File 'lib/yobi/repository/ls.rb', line 43

def snapshot
  @snapshot ||= Yobi::Snapshot.new(JSON.parse(snapshot_line))
end