Class: JSS::UserExtensionAttribute
- Inherits:
-
ExtensionAttribute
- Object
- APIObject
- ExtensionAttribute
- JSS::UserExtensionAttribute
- Defined in:
- lib/jss/api_object/extension_attribute/user_extension_attribute.rb,
lib/jss.rb
Overview
A User extension attribute as defined in the JSS
Constant Summary collapse
- RSRC_BASE =
The base for REST resources of this class
'userextensionattributes'.freeze
- RSRC_LIST_KEY =
the hash key used for the JSON list output of all objects in the JSS
:user_extension_attributes
- RSRC_OBJECT_KEY =
The hash key used for the JSON object output. It's also used in various error messages
:user_extension_attribute
- TARGET_CLASS =
these ext attribs are related to these kinds of objects
JSS::User
- ALL_TARGETS_CRITERION =
A criterion that will return all members of the TARGET_CLASS
JSS::Criteriable::Criterion.new(and_or: 'and', name: 'Username', search_type: 'like', value: '')
- OBJECT_HISTORY_OBJECT_TYPE =
the object type for this object in the object history table. See APIObject#add_object_history_entry
87
Instance Attribute Summary collapse
-
#need_to_update ⇒ Boolean
included
from Updatable
readonly
Do we have unsaved changes?.
Instance Method Summary collapse
Constructor Details
This class inherits a constructor from JSS::ExtensionAttribute
Instance Attribute Details
#need_to_update ⇒ Boolean (readonly) Originally defined in module Updatable
Returns do we have unsaved changes?.
Instance Method Details
#input_type=(new_val) ⇒ Object
64 65 66 67 68 69 |
# File 'lib/jss/api_object/extension_attribute/user_extension_attribute.rb', line 64 def input_type=(new_val) raise JSS::InvalidDataError, "User Extension Attribute input_type cannot be '#{INPUT_TYPE_SCRIPT}'" if new_val == INPUT_TYPE_SCRIPT raise JSS::InvalidDataError, "User Extension Attribute input_type cannot be '#{INPUT_TYPE_LDAP}'" if new_val == INPUT_TYPE_LDAP super end |
#web_display=(_new_val) ⇒ Object
73 74 75 |
# File 'lib/jss/api_object/extension_attribute/user_extension_attribute.rb', line 73 def web_display=(_new_val) raise JSS::UnsupportedError, 'User Extension Attributes web_display cannot be set' end |