Class: DCloud::HardwareProfile::IntegerProperty

Inherits:
Property
  • Object
show all
Defined in:
lib/dcloud/hardware_profile.rb

Instance Attribute Summary

Attributes inherited from Property

#enum, #kind, #name, #range, #unit, #value

Instance Method Summary collapse

Methods inherited from Property

#present?, #to_s

Constructor Details

#initialize(xml, name) ⇒ IntegerProperty

Returns a new instance of IntegerProperty.



86
87
88
89
# File 'lib/dcloud/hardware_profile.rb', line 86

def initialize(xml, name)
  super(xml, name)
  @value = @value.to_i if @value
end