Method: JSS::Categorizable#category_object

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

#category_objectJSS::Category

The JSS::Category instance for this object’s category

Returns:

  • (JSS::Category)

    The JSS::Category instance for this object’s category



110
111
112
113
# File 'lib/jss/api_object/categorizable.rb', line 110

def category_object
  return nil unless category_assigned?
  JSS::Category.fetch id: @category_id
end