Class: DCloud::HardwareProfile::FloatProperty

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) ⇒ FloatProperty

Returns a new instance of FloatProperty.



79
80
81
82
# File 'lib/dcloud/hardware_profile.rb', line 79

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