Class: DCloud::HardwareProfile::FloatProperty
- Defined in:
- lib/dcloud/hardware_profile.rb
Instance Attribute Summary
Attributes inherited from Property
#enum, #kind, #name, #range, #unit, #value
Instance Method Summary collapse
-
#initialize(xml, name) ⇒ FloatProperty
constructor
A new instance of FloatProperty.
Methods inherited from Property
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 |