--- layout: docs title: Attribute edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute.coffee" ---

Summary

The Attribute class represents a single model attribute, like 'account_id'. Subclasses of Attribute like AttributeDateTime know how to covert between the JSON representation of that type and the javascript representation. The Attribute class also exposes convenience methods for generating Matcher objects.

Instance Methods

equal()

Returns
Return Values

Returns a Matcher for objects = to the provided value.

in()

Returns
Return Values

Returns a Matcher for objects = to the provided value.

not()

Returns
Return Values

Returns a Matcher for objects != to the provided value.

descending()

Returns
Return Values

Returns a descending SortOrder for this attribute.

ascending()

Returns
Return Values

Returns an ascending SortOrder for this attribute.