beta.xbrl.xule.Unit¶
A beta.xbrl.xule.Unit class represents a XBRL unit in the XULE type system.
Base class: beta.xbrl.xule.Value
-
class
beta.xbrl.xule.Unit(value)¶ Constructs a new
beta.xbrl.xule.Unitvalue object from anxbrl.Unitorxbrl.UnitAspectValueargument.
Attributes¶
-
beta.xbrl.xule.Unit.id¶ Returns the id property of the underlying XULE value as str.
-
beta.xbrl.xule.Value.location Returns a
beta.xbrl.xule.Locationobject that represents the underlying source XBRL fact, concept, relationship, … of this XULE value.
-
beta.xbrl.xule.Unit.unit¶ Returns a
xbrl.Unitobject that represents the underlying XBRL instance unit, otherwise None if the XULE unit object was constructed manually using the unit() function.
-
beta.xbrl.xule.Unit.value¶ Returns a
xbrl.UnitAspectValueobject that represents the underlying XULE value.
Methods¶
-
beta.xbrl.xule.Value.property(name) Returns the given property as a
beta.xbrl.xule.Valueobject.
Special methods¶
__bool__, __eq__, __float__, __ge__, __gt__, __int__, __le__, __lt__, __ne__