Skip to main content

@bloock/sdk / DecimalAttribute

Class: DecimalAttribute

Represents an attribute with a decimal value.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DecimalAttribute(id, value): DecimalAttribute

Constructs a Attribute object with the specified parameters.

Parameters

NameType
idstring
valuenumber

Returns

DecimalAttribute

Inherited from

Attribute.constructor

Defined in

entity/identity/attribute.ts:13

Properties

id

id: string

Inherited from

Attribute.id

Defined in

entity/identity/attribute.ts:5


value

value: number

Inherited from

Attribute.value

Defined in

entity/identity/attribute.ts:6

Methods

toProto

toProto(): DecimalAttribute

Returns

DecimalAttribute

Defined in

entity/identity/decimal_attribute.ts:8


fromProto

fromProto(r): DecimalAttribute

Parameters

NameType
rDecimalAttribute

Returns

DecimalAttribute

Defined in

entity/identity/decimal_attribute.ts:15