Documentation / @blazetrails/activemodel / Attributes
Class: Attributes
Defined in: packages/activemodel/lib/attributes.ts:128
Extends
Pick<Included<typeofAttributeMethods>,"isAttributeMethod"|"matchedAttributeMethod"|"missingAttribute"|"_readAttribute">
Constructors
Constructor
new Attributes():
Attributes
Returns
Attributes
Inherited from
Pick< Included<typeof AttributeMethods>, "isAttributeMethod" | "matchedAttributeMethod" | "missingAttribute" | "_readAttribute" >.constructor
Properties
_attributes
_attributes:
AttributeSet
Defined in: packages/activemodel/lib/attributes.ts:173
Accessors
attributes
Get Signature
get attributes():
Record<string,unknown>
Defined in: packages/activemodel/lib/attributes.ts:180
Returns
Record<string, unknown>
Methods
_readAttribute()
_readAttribute(...
args):unknown
Defined in: packages/activemodel/lib/attribute-methods.ts:564
Parameters
| Parameter | Type |
|---|---|
...args | [string] |
Returns
unknown
Inherited from
Pick._readAttribute
attributeMissing()
attributeMissing(
match, ...args):unknown
Defined in: packages/activemodel/lib/attributes.ts:135
Parameters
| Parameter | Type |
|---|---|
match | AttributeMethod |
...args | unknown[] |
Returns
unknown
attributeNames()
attributeNames():
string[]
Defined in: packages/activemodel/lib/attributes.ts:184
Returns
string[]
isAttributeMethod()
isAttributeMethod(...
args):boolean
Defined in: packages/activemodel/lib/attribute-methods.ts:544
Parameters
| Parameter | Type |
|---|---|
...args | [string] |
Returns
boolean
Inherited from
Pick.isAttributeMethod
isRespondTo()
isRespondTo(...
args):boolean
Defined in: packages/activemodel/lib/attributes.ts:139
Parameters
| Parameter | Type |
|---|---|
...args | [string, boolean] |
Returns
boolean
isRespondToWithoutAttributes()
isRespondToWithoutAttributes(...
args):boolean
Defined in: packages/activemodel/lib/attributes.ts:136
Parameters
| Parameter | Type |
|---|---|
...args | [string, boolean] |
Returns
boolean
matchedAttributeMethod()
matchedAttributeMethod(...
args):AttributeMethod|null
Defined in: packages/activemodel/lib/attribute-methods.ts:549
Parameters
| Parameter | Type |
|---|---|
...args | [string] |
Returns
AttributeMethod | null
Inherited from
Pick.matchedAttributeMethod
methodMissing()
methodMissing(...
args):unknown
Defined in: packages/activemodel/lib/attributes.ts:132
Parameters
| Parameter | Type |
|---|---|
...args | [string, ...args: unknown[]] |
Returns
unknown
missingAttribute()
missingAttribute(...
args):never
Defined in: packages/activemodel/lib/attribute-methods.ts:555
Parameters
| Parameter | Type |
|---|---|
...args | [string, string[]] |
Returns
never
Inherited from
Pick.missingAttribute
[included]()
static[included](base):void
Defined in: packages/activemodel/lib/attributes.ts:158
Parameters
| Parameter | Type |
|---|---|
base | AttributeMethodSuffixHost |
Returns
void