Skip to content

Documentation


Documentation / @blazetrails/activemodel / Attributes

Class: Attributes ​

Defined in: packages/activemodel/lib/attributes.ts:128

Extends ​

  • Pick<Included<typeof AttributeMethods>, "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 ​

ParameterType
...args[string]

Returns ​

unknown

Inherited from ​

Pick._readAttribute


attributeMissing() ​

attributeMissing(match, ...args): unknown

Defined in: packages/activemodel/lib/attributes.ts:135

Parameters ​

ParameterType
matchAttributeMethod
...argsunknown[]

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 ​

ParameterType
...args[string]

Returns ​

boolean

Inherited from ​

Pick.isAttributeMethod


isRespondTo() ​

isRespondTo(...args): boolean

Defined in: packages/activemodel/lib/attributes.ts:139

Parameters ​

ParameterType
...args[string, boolean]

Returns ​

boolean


isRespondToWithoutAttributes() ​

isRespondToWithoutAttributes(...args): boolean

Defined in: packages/activemodel/lib/attributes.ts:136

Parameters ​

ParameterType
...args[string, boolean]

Returns ​

boolean


matchedAttributeMethod() ​

matchedAttributeMethod(...args): AttributeMethod | null

Defined in: packages/activemodel/lib/attribute-methods.ts:549

Parameters ​

ParameterType
...args[string]

Returns ​

AttributeMethod | null

Inherited from ​

Pick.matchedAttributeMethod


methodMissing() ​

methodMissing(...args): unknown

Defined in: packages/activemodel/lib/attributes.ts:132

Parameters ​

ParameterType
...args[string, ...args: unknown[]]

Returns ​

unknown


missingAttribute() ​

missingAttribute(...args): never

Defined in: packages/activemodel/lib/attribute-methods.ts:555

Parameters ​

ParameterType
...args[string, string[]]

Returns ​

never

Inherited from ​

Pick.missingAttribute


[included]() ​

static [included](base): void

Defined in: packages/activemodel/lib/attributes.ts:158

Parameters ​

ParameterType
baseAttributeMethodSuffixHost

Returns ​

void