Class: Supply::ImageListing
- Inherits:
-
Object
- Object
- Supply::ImageListing
- Defined in:
- supply/lib/supply/image_listing.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#sha1 ⇒ Object
readonly
Returns the value of attribute sha1.
-
#sha256 ⇒ Object
readonly
Returns the value of attribute sha256.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id, sha1, sha256, url) ⇒ ImageListing
constructor
A new instance of ImageListing.
Constructor Details
#initialize(id, sha1, sha256, url) ⇒ ImageListing
Returns a new instance of ImageListing.
8 9 10 11 12 13 |
# File 'supply/lib/supply/image_listing.rb', line 8 def initialize(id, sha1, sha256, url) @id = id @sha1 = sha1 @sha256 = sha256 @url = url end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'supply/lib/supply/image_listing.rb', line 3 def id @id end |
#sha1 ⇒ Object (readonly)
Returns the value of attribute sha1.
4 5 6 |
# File 'supply/lib/supply/image_listing.rb', line 4 def sha1 @sha1 end |
#sha256 ⇒ Object (readonly)
Returns the value of attribute sha256.
5 6 7 |
# File 'supply/lib/supply/image_listing.rb', line 5 def sha256 @sha256 end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'supply/lib/supply/image_listing.rb', line 6 def url @url end |