Class: Supply::ImageListing

Inherits:
Object
  • Object
show all
Defined in:
supply/lib/supply/image_listing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'supply/lib/supply/image_listing.rb', line 3

def id
  @id
end

#sha1Object (readonly)

Returns the value of attribute sha1.



4
5
6
# File 'supply/lib/supply/image_listing.rb', line 4

def sha1
  @sha1
end

#sha256Object (readonly)

Returns the value of attribute sha256.



5
6
7
# File 'supply/lib/supply/image_listing.rb', line 5

def sha256
  @sha256
end

#urlObject (readonly)

Returns the value of attribute url.



6
7
8
# File 'supply/lib/supply/image_listing.rb', line 6

def url
  @url
end