Skip to content

Documentation


Documentation / @blazetrails/activemodel / AttributeMethods / InstanceMethodsHost

Interface: InstanceMethodsHost ​

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

Extends ​

Properties ​

_attributes? ​

optional _attributes?: { isKey: boolean; }

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

isKey() ​

isKey(name): boolean

Parameters ​
ParameterType
namestring
Returns ​

boolean

Inherited from ​

InstanceHost._attributes


attributeMethodPatterns? ​

optional attributeMethodPatterns?: AttributeMethodPattern[]

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

Inherited from ​

InstanceHost.attributeMethodPatterns


attributes ​

attributes: Record<string, unknown>

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

Inherited from ​

InstanceHost.attributes


constructor ​

constructor: ClassMethodsHost

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

Overrides ​

InstanceHost.constructor

Methods ​

_readAttribute() ​

_readAttribute(...args): unknown

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

Parameters ​

ParameterType
...args[string]

Returns ​

unknown

Inherited from ​

Included._readAttribute


attributeMissing() ​

attributeMissing(...args): unknown

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

Parameters ​

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

Returns ​

unknown

Inherited from ​

Included.attributeMissing


isAttributeMethod() ​

isAttributeMethod(...args): boolean

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

Parameters ​

ParameterType
...args[string]

Returns ​

boolean

Inherited from ​

Included.isAttributeMethod


isRespondTo() ​

isRespondTo(...args): boolean

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

Parameters ​

ParameterType
...args[string, boolean]

Returns ​

boolean

Inherited from ​

Included.isRespondTo


isRespondToWithoutAttributes() ​

isRespondToWithoutAttributes(...args): boolean

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

Parameters ​

ParameterType
...args[string, boolean]

Returns ​

boolean

Inherited from ​

Included.isRespondToWithoutAttributes


matchedAttributeMethod() ​

matchedAttributeMethod(...args): AttributeMethod | null

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

Parameters ​

ParameterType
...args[string]

Returns ​

AttributeMethod | null

Inherited from ​

Included.matchedAttributeMethod


methodMissing() ​

methodMissing(...args): unknown

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

Parameters ​

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

Returns ​

unknown

Inherited from ​

Included.methodMissing


missingAttribute() ​

missingAttribute(...args): never

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

Parameters ​

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

Returns ​

never

Inherited from ​

Included.missingAttribute