Class: Yobi::Snapshot
Overview
Instance Method Summary
collapse
Methods inherited from FancyHash
#initialize, #inspect, #pretty_print
Instance Method Details
#host ⇒ String
25
26
27
|
# File 'lib/yobi/snapshot.rb', line 25
def host
self["hostname"]
end
|
#id ⇒ String
10
11
12
|
# File 'lib/yobi/snapshot.rb', line 10
def id
self["id"]
end
|
#parent_id ⇒ String?
40
41
42
|
# File 'lib/yobi/snapshot.rb', line 40
def parent_id
self["parent"]
end
|
#paths ⇒ Array<String>
35
36
37
|
# File 'lib/yobi/snapshot.rb', line 35
def paths
self["paths"]
end
|
#short_id ⇒ String
15
16
17
|
# File 'lib/yobi/snapshot.rb', line 15
def short_id
self["short_id"]
end
|
45
46
47
|
# File 'lib/yobi/snapshot.rb', line 45
def summary
@summary ||= SnapshotSummary.new(self["summary"] || {})
end
|
30
31
32
|
# File 'lib/yobi/snapshot.rb', line 30
def tags
@tags ||= self["tags"] || []
end
|
#time ⇒ Time
20
21
22
|
# File 'lib/yobi/snapshot.rb', line 20
def time
@time ||= Time.parse(self["time"])
end
|