Class: Yobi::LsOutcome
- Inherits:
-
Struct
- Object
- Struct
- Yobi::LsOutcome
- Defined in:
- lib/yobi/repository/ls.rb,
sig/yobi.rbs
Overview
The outcome of one Repository#ls call.
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
- #entries ⇒ Enumerable<Yobi::LsEntry>
-
#snapshot ⇒ Yobi::Snapshot
The resolved snapshot, useful when
snapshot_id:was"latest".
Instance Attribute Details
#exit_code ⇒ Object
Returns the value of attribute exit_code
41 42 43 |
# File 'lib/yobi/repository/ls.rb', line 41 def exit_code @exit_code end |
#output ⇒ Object
Returns the value of attribute output
41 42 43 |
# File 'lib/yobi/repository/ls.rb', line 41 def output @output end |
Instance Method Details
#entries ⇒ Enumerable<Yobi::LsEntry>
48 49 50 |
# File 'lib/yobi/repository/ls.rb', line 48 def entries @entries ||= LsEntries.new(output) end |
#snapshot ⇒ Yobi::Snapshot
Returns 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 |