Class: Braintrust::Models::View

Inherits:
BaseModel show all
Defined in:
lib/braintrust/models/view.rb

Defined Under Namespace

Classes: ObjectType, ViewType

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #initialize, #inspect, #to_h, #to_s

Constructor Details

This class inherits a constructor from Braintrust::BaseModel

Instance Attribute Details

#createdDateTime

Date of view creation

Returns:

  • (DateTime)


36
# File 'lib/braintrust/models/view.rb', line 36

optional :created, DateTime

#deleted_atDateTime

Date of role deletion, or null if the role is still active

Returns:

  • (DateTime)


41
# File 'lib/braintrust/models/view.rb', line 41

optional :deleted_at, DateTime

#idString

Unique identifier for the view

Returns:

  • (String)


9
# File 'lib/braintrust/models/view.rb', line 9

required :id, String

#name_String

Name of the view

Returns:

  • (String)


14
# File 'lib/braintrust/models/view.rb', line 14

required :name_, String

#object_id_String

The id of the object the view applies to

Returns:

  • (String)


19
# File 'lib/braintrust/models/view.rb', line 19

required :object_id_, String

#object_typeSymbol

The object type that the ACL applies to One of the constants defined in ObjectType

Returns:

  • (Symbol)


25
# File 'lib/braintrust/models/view.rb', line 25

required :object_type, enum: -> { Braintrust::Models::View::ObjectType }

#optionsBraintrust::Models::ViewOptions

Options for the view in the app



46
# File 'lib/braintrust/models/view.rb', line 46

optional :options, -> { Braintrust::Models::ViewOptions }

#user_idString

Identifies the user who created the view

Returns:

  • (String)


51
# File 'lib/braintrust/models/view.rb', line 51

optional :user_id, String

#view_dataBraintrust::Models::ViewData

The view definition



56
# File 'lib/braintrust/models/view.rb', line 56

optional :view_data, -> { Braintrust::Models::ViewData }

#view_typeSymbol

Type of table that the view corresponds to. One of the constants defined in ViewType

Returns:

  • (Symbol)


31
# File 'lib/braintrust/models/view.rb', line 31

required :view_type, enum: -> { Braintrust::Models::View::ViewType }