class DeltaCloud::HWP::Property

Attributes

kind[R]
name[R]
unit[R]
value[R]

Public Class Methods

new(xml, name) click to toggle source
# File lib/hwp_properties.rb, line 23
def initialize(xml, name)
  @name, @kind, @value, @unit = xml['name'], xml['kind'].to_sym, xml['value'], xml['unit']
  declare_ranges(xml)
  self
end

Public Instance Methods

present?() click to toggle source
# File lib/hwp_properties.rb, line 29
def present?
  ! @value.nil?
end