Class: DeltaCloud::HWP::FloatProperty
- Inherits:
-
Property
- Object
- Property
- DeltaCloud::HWP::FloatProperty
- Defined in:
- lib/deltacloud.rb
Overview
FloatProperty is like Property but return value is Float instead of String.
Instance Method Summary (collapse)
-
- (FloatProperty) initialize(xml, name)
constructor
A new instance of FloatProperty.
Methods inherited from Property
Constructor Details
- (FloatProperty) initialize(xml, name)
A new instance of FloatProperty
543 544 545 546 |
# File 'lib/deltacloud.rb', line 543 def initialize(xml, name) super(xml, name) @value = @value.to_f if @value end |