Test your website performance for free
Test your website performance
New in 1.18.0

create(attributes)

Creates a new Obj with the given attributes and assigns it to the site.

Params

  • attributes (Object) – The custom attributes and their values of the new CMS object.

Throws

  • ArgumentError – If a given attribute is invalid.

Returns

The created Obj.

See also

Obj.create

Example

Create an object belonging to every site: