Class: DeltaCloud::HWP::FloatProperty

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

Overview

FloatProperty is like Property but return value is Float instead of String.

Instance Method Summary (collapse)

Methods inherited from Property

#present?

Constructor Details

- (FloatProperty) initialize(xml, name)

A new instance of FloatProperty



479
480
481
482
# File 'lib/deltacloud.rb', line 479

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