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
50 51 52 |
# File 'lib/bsdkrun/types.rb', line 50 def created_at @created_at end |
#digest ⇒ Object (readonly)
Returns the value of attribute digest
50 51 52 |
# File 'lib/bsdkrun/types.rb', line 50 def digest @digest end |
#id ⇒ Object (readonly)
Returns the value of attribute id
50 51 52 |
# File 'lib/bsdkrun/types.rb', line 50 def id @id end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference
50 51 52 |
# File 'lib/bsdkrun/types.rb', line 50 def reference @reference end |
#rootfs ⇒ Object (readonly)
Returns the value of attribute rootfs
50 51 52 |
# File 'lib/bsdkrun/types.rb', line 50 def rootfs @rootfs end |
#size ⇒ Object (readonly)
Returns the value of attribute size
50 51 52 |
# File 'lib/bsdkrun/types.rb', line 50 def size @size end |
Class Method Details
.from_row(row) ⇒ ImageInfo
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/bsdkrun/types.rb', line 53 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 |