Class: Copper::DataTypes::ImageClass

Inherits:
Object
  • Object
show all
Defined in:
lib/copper/data_types/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ImageClass

Returns a new instance of ImageClass.



96
97
98
99
100
101
102
# File 'lib/copper/data_types/image.rb', line 96

def initialize(hash)
	@fqin = hash[:fqin]
	@registry = hash[:registry]
	@registry_url = hash[:registry_url]
	@name = hash[:name]
	@tag = hash[:tag]
end

Instance Attribute Details

#fqinObject

Returns the value of attribute fqin.



90
91
92
# File 'lib/copper/data_types/image.rb', line 90

def fqin
  @fqin
end

#nameObject

Returns the value of attribute name.



93
94
95
# File 'lib/copper/data_types/image.rb', line 93

def name
  @name
end

#registryObject

Returns the value of attribute registry.



91
92
93
# File 'lib/copper/data_types/image.rb', line 91

def registry
  @registry
end

#registry_urlObject

Returns the value of attribute registry_url.



92
93
94
# File 'lib/copper/data_types/image.rb', line 92

def registry_url
  @registry_url
end

#tagObject

Returns the value of attribute tag.



94
95
96
# File 'lib/copper/data_types/image.rb', line 94

def tag
  @tag
end

Instance Method Details

#to_sObject



104
105
106
# File 'lib/copper/data_types/image.rb', line 104

def to_s
	"fqin:#{fqin}, registry:#{registry}, registry_url:#{registry_url}, name:#{name}, tag:#{tag}"
end