Class: Salesforce::Types::FieldPermissions
- Inherits:
-
Object
- Object
- Salesforce::Types::FieldPermissions
- Includes:
- ROXML
- Defined in:
- lib/mdata/types/FieldPermissions.rb
Overview
A generic FieldPermissions class that can be extended for specific metadata objects, e.g. PermissionSetFieldPermissions.
Direct Known Subclasses
Instance Method Summary collapse
-
#to_flag_style ⇒ String
A Unix flag style representation of the permissions, suitable for printing in a table.
Instance Method Details
#to_flag_style ⇒ String
A Unix flag style representation of the permissions, suitable for printing in a table
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/mdata/types/FieldPermissions.rb', line 20 def to_flag_style = '' if @editable == 'true' += 'editable ' else += ' ' end if @readable == 'true' += 'readable' else += ' ' end end |