lib/jss/api_object/policy.rb in ruby-jss-0.10.1 vs lib/jss/api_object/policy.rb in ruby-jss-0.10.2a4

- old
+ new

@@ -75,10 +75,11 @@ include JSS::Updatable include JSS::Scopable include JSS::Uploadable include JSS::SelfServable include JSS::Categorizable + include JSS::Sitable ##################################### ### Class Methods ##################################### @@ -247,10 +248,13 @@ # the object type for this object in # the object history table. # See {APIObject#add_object_history_entry} OBJECT_HISTORY_OBJECT_TYPE = 3 + # Where is the Site data in the API JSON? + SITE_SUBSET = :general + ###################### ### Attributes ###################### ##### General @@ -1358,9 +1362,10 @@ sdeets = JSS.hash_to_rexml_array s sdeets.each { |d| script << d } end add_self_service_xml doc + add_site_xml doc doc.to_s end end # class policy