Class: Hyperb::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/hyperb/images/image.rb

Overview

image object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#createdObject

Returns the value of attribute created.



4
5
6
# File 'lib/hyperb/images/image.rb', line 4

def created
  @created
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/hyperb/images/image.rb', line 4

def id
  @id
end

#labelsObject

Returns the value of attribute labels.



4
5
6
# File 'lib/hyperb/images/image.rb', line 4

def labels
  @labels
end

#parent_idObject

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_digestsObject

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_tagsObject

Returns the value of attribute repo_tags.



4
5
6
# File 'lib/hyperb/images/image.rb', line 4

def repo_tags
  @repo_tags
end

#sizeObject

Returns the value of attribute size.



4
5
6
# File 'lib/hyperb/images/image.rb', line 4

def size
  @size
end

#virtual_sizeObject

Returns the value of attribute virtual_size.



4
5
6
# File 'lib/hyperb/images/image.rb', line 4

def virtual_size
  @virtual_size
end