Class: Azure::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/service_management/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image) ⇒ Image

Returns a new instance of Image.



84
85
86
87
88
89
90
91
92
# File 'lib/azure/service_management/image.rb', line 84

def initialize(image)
  @category = image.at_css("Category").content
  @label = image.at_css("Label").content
  @name = image.at_css("Name").content
  @os = image.at_css("OS").content
  @location = image.at_css("Location").content.gsub(";", ", ") if image.at_css("Location")
  @eula = image.at_css("Eula").content if image.at_css("Eula")
  @description = image.at_css("Description").content if image.at_css("Description")
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



82
83
84
# File 'lib/azure/service_management/image.rb', line 82

def category
  @category
end

#descriptionObject

Returns the value of attribute description.



83
84
85
# File 'lib/azure/service_management/image.rb', line 83

def description
  @description
end

#eulaObject

Returns the value of attribute eula.



83
84
85
# File 'lib/azure/service_management/image.rb', line 83

def eula
  @eula
end

#labelObject

Returns the value of attribute label.



82
83
84
# File 'lib/azure/service_management/image.rb', line 82

def label
  @label
end

#locationObject

Returns the value of attribute location.



83
84
85
# File 'lib/azure/service_management/image.rb', line 83

def location
  @location
end

#nameObject

Returns the value of attribute name.



83
84
85
# File 'lib/azure/service_management/image.rb', line 83

def name
  @name
end

#osObject

Returns the value of attribute os.



83
84
85
# File 'lib/azure/service_management/image.rb', line 83

def os
  @os
end