Method: JSS::Extendable#parse_ext_attrs
- Defined in:
- lib/jss/api_object/extendable.rb
#parse_ext_attrs ⇒ void
This method returns an undefined value.
Populate @extension_attributes (the Array of Hashes that comes from the API) and @ext_attr_names, which is a Hash mapping the EA names to their values. This is called during initialization for all objects that mix in this module
86 87 88 89 90 91 92 93 |
# File 'lib/jss/api_object/extendable.rb', line 86 def parse_ext_attrs @extension_attributes = @init_data[:extension_attributes] @extension_attributes ||= [] # remember changes as they happen so # we only send changes back to the server. @changed_eas = [] end |