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.Unit value object from an xbrl.Unit or xbrl.UnitAspectValue argument.

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.Location object that represents the underlying source XBRL fact, concept, relationship, … of this XULE value.

beta.xbrl.xule.Unit.unit

Returns a xbrl.Unit object 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.UnitAspectValue object that represents the underlying XULE value.

Methods

beta.xbrl.xule.Value.property(name)

Returns the given property as a beta.xbrl.xule.Value object.

Special methods

__bool__, __eq__, __float__, __ge__, __gt__, __int__, __le__, __lt__, __ne__