Class: Braintrust::Models::View
- Defined in:
- lib/braintrust/models/view.rb
Defined Under Namespace
Classes: ObjectType, ViewType
Instance Attribute Summary collapse
-
#created ⇒ DateTime
Date of view creation.
-
#deleted_at ⇒ DateTime
Date of role deletion, or null if the role is still active.
-
#id ⇒ String
Unique identifier for the view.
-
#name_ ⇒ String
Name of the view.
-
#object_id_ ⇒ String
The id of the object the view applies to.
-
#object_type ⇒ Symbol
The object type that the ACL applies to One of the constants defined in ObjectType.
-
#options ⇒ Braintrust::Models::ViewOptions
Options for the view in the app.
-
#user_id ⇒ String
Identifies the user who created the view.
-
#view_data ⇒ Braintrust::Models::ViewData
The view definition.
-
#view_type ⇒ Symbol
Type of table that the view corresponds to.
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
#created ⇒ DateTime
Date of view creation
36 |
# File 'lib/braintrust/models/view.rb', line 36 optional :created, DateTime |
#deleted_at ⇒ DateTime
Date of role deletion, or null if the role is still active
41 |
# File 'lib/braintrust/models/view.rb', line 41 optional :deleted_at, DateTime |
#id ⇒ String
Unique identifier for the view
9 |
# File 'lib/braintrust/models/view.rb', line 9 required :id, String |
#name_ ⇒ String
Name of the view
14 |
# File 'lib/braintrust/models/view.rb', line 14 required :name_, String |
#object_id_ ⇒ String
The id of the object the view applies to
19 |
# File 'lib/braintrust/models/view.rb', line 19 required :object_id_, String |
#object_type ⇒ Symbol
The object type that the ACL applies to One of the constants defined in ObjectType
25 |
# File 'lib/braintrust/models/view.rb', line 25 required :object_type, enum: -> { Braintrust::Models::View::ObjectType } |
#options ⇒ Braintrust::Models::ViewOptions
Options for the view in the app
46 |
# File 'lib/braintrust/models/view.rb', line 46 optional :options, -> { Braintrust::Models::ViewOptions } |
#user_id ⇒ String
Identifies the user who created the view
51 |
# File 'lib/braintrust/models/view.rb', line 51 optional :user_id, String |
#view_data ⇒ Braintrust::Models::ViewData
The view definition
56 |
# File 'lib/braintrust/models/view.rb', line 56 optional :view_data, -> { Braintrust::Models::ViewData } |
#view_type ⇒ Symbol
Type of table that the view corresponds to. One of the constants defined in ViewType
31 |
# File 'lib/braintrust/models/view.rb', line 31 required :view_type, enum: -> { Braintrust::Models::View::ViewType } |