Class: Braintrust::Models::Role::MemberPermission
- Defined in:
- lib/braintrust/models/role.rb
Defined Under Namespace
Classes: Permission, RestrictObjectType
Instance Attribute Summary collapse
-
#permission ⇒ Object
Each permission permits a certain type of operation on an object in the system.
-
#restrict_object_type ⇒ Symbol
The object type that the ACL applies to One of the constants defined in RestrictObjectType.
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
#permission ⇒ Object
Each permission permits a certain type of operation on an object in the system
64 |
# File 'lib/braintrust/models/role.rb', line 64 required :permission, enum: -> { Braintrust::Models::Role::MemberPermission::Permission } |
#restrict_object_type ⇒ Symbol
The object type that the ACL applies to One of the constants defined in RestrictObjectType
70 71 |
# File 'lib/braintrust/models/role.rb', line 70 optional :restrict_object_type, enum: -> { Braintrust::Models::Role::MemberPermission::RestrictObjectType } |