lib/cim/qualifier_declaration.rb in cim-0.5.0 vs lib/cim/qualifier_declaration.rb in cim-1.3
- old
+ new
@@ -20,11 +20,11 @@
# Deprecated:: to denote end-of-life for model elements
# Min, Max:: (MinLen, MaxLen, MinValue, MaxValue) limits
#
# A QualifierDeclaration declares a qualifier by
# name:: (String)
- # type:: (Type) (defaults to bool)
+ # type:: (Type) (defaults to boolean)
# default value:: (Variant) (defaults to false)
# scopes:: (QualifierScopes) (where the qualifier can be used)
# flavor:: (QualifierFlavors) (how the qualifier is applied)
#
#
@@ -32,10 +32,10 @@
attr_reader :type, :default, :scopes, :flavors
#
# Create a new QualifierDeclaration
#
- def initialize name, type = :bool, default = false, scopes = nil, flavors = nil
+ def initialize name, type = :boolean, default = false, scopes = nil, flavors = nil
@type = (type.kind_of? Type) ? type : Type.new(type)
@default = (default.nil? || default.is_a?(CIM::Variant)) ? default : CIM::Variant.new(@type, default)
@scopes = scopes
@flavors = flavors
super name