Class: Bsdkrun::ImageInfo
- Inherits:
-
Data
- Object
- Data
- Bsdkrun::ImageInfo
- Defined in:
- lib/bsdkrun/types.rb
Overview
An image as reported by bsdkrun images --json.
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#digest ⇒ Object
readonly
Returns the value of attribute digest.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#rootfs ⇒ Object
readonly
Returns the value of attribute rootfs.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Class Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
105 106 107 |
# File 'lib/bsdkrun/types.rb', line 105 def created_at @created_at end |
#digest ⇒ Object (readonly)
Returns the value of attribute digest
105 106 107 |
# File 'lib/bsdkrun/types.rb', line 105 def digest @digest end |
#id ⇒ Object (readonly)
Returns the value of attribute id
105 106 107 |
# File 'lib/bsdkrun/types.rb', line 105 def id @id end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference
105 106 107 |
# File 'lib/bsdkrun/types.rb', line 105 def reference @reference end |
#rootfs ⇒ Object (readonly)
Returns the value of attribute rootfs
105 106 107 |
# File 'lib/bsdkrun/types.rb', line 105 def rootfs @rootfs end |
#size ⇒ Object (readonly)
Returns the value of attribute size
105 106 107 |
# File 'lib/bsdkrun/types.rb', line 105 def size @size end |
Class Method Details
.from_row(row) ⇒ ImageInfo
108 109 110 111 112 113 114 115 116 117 |
# File 'lib/bsdkrun/types.rb', line 108 def self.from_row(row) new( id: row["id"].to_s, reference: row["reference"].to_s, digest: row["digest"].to_s, size: row["size"].to_i, rootfs: row["rootfs"].to_s, created_at: row["created_at"].to_i ) end |