Class: Hyperb::Image
- Inherits:
-
Object
- Object
- Hyperb::Image
- Defined in:
- lib/hyperb/images/image.rb
Overview
image object
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#id ⇒ Object
Returns the value of attribute id.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#repo_digests ⇒ Object
Returns the value of attribute repo_digests.
-
#repo_tags ⇒ Object
Returns the value of attribute repo_tags.
-
#size ⇒ Object
Returns the value of attribute size.
-
#virtual_size ⇒ Object
Returns the value of attribute virtual_size.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(attrs = {}) ⇒ Image
Returns a new instance of Image.
7 8 9 10 11 |
# File 'lib/hyperb/images/image.rb', line 7 def initialize(attrs = {}) attrs.each do |k, v| instance_variable_set("@#{k.downcase.to_sym}", v) end end |
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created.
4 5 6 |
# File 'lib/hyperb/images/image.rb', line 4 def created @created end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/hyperb/images/image.rb', line 4 def id @id end |
#labels ⇒ Object
Returns the value of attribute labels.
4 5 6 |
# File 'lib/hyperb/images/image.rb', line 4 def labels @labels end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
4 5 6 |
# File 'lib/hyperb/images/image.rb', line 4 def parent_id @parent_id end |
#repo_digests ⇒ Object
Returns the value of attribute repo_digests.
4 5 6 |
# File 'lib/hyperb/images/image.rb', line 4 def repo_digests @repo_digests end |
#repo_tags ⇒ Object
Returns the value of attribute repo_tags.
4 5 6 |
# File 'lib/hyperb/images/image.rb', line 4 def @repo_tags end |
#size ⇒ Object
Returns the value of attribute size.
4 5 6 |
# File 'lib/hyperb/images/image.rb', line 4 def size @size end |
#virtual_size ⇒ Object
Returns the value of attribute virtual_size.
4 5 6 |
# File 'lib/hyperb/images/image.rb', line 4 def virtual_size @virtual_size end |