Class: DCloud::HardwareProfile::IntegerProperty
- 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) ⇒ IntegerProperty
constructor
A new instance of IntegerProperty.
Methods inherited from Property
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 |