Method: JSS::PeripheralType#append_field

Defined in:
lib/jss/api_object/peripheral_type.rb

#append_field(field = {}) ⇒ void

This method returns an undefined value.

Add a new field to the end of the field list

Parameters:

  • field (Hash) (defaults to: {})

    the new field data



184
185
186
187
188
189
# File 'lib/jss/api_object/peripheral_type.rb', line 184

def append_field(field = {})
  field_ok? field
  @fields << field
  order_fields
  @need_to_update = true
end