lib/arborist/node/resource.rb in arborist-0.4.0 vs lib/arborist/node/resource.rb in arborist-0.5.0

- old
+ new

@@ -22,9 +22,16 @@ attributes[ :category ] ||= identifier super( qualified_identifier, host, attributes, &block ) end + ### Return the node family, so observers can know ancestry after + ### serialization for custom node types that inherit from this class. + def family + return :resource + end + + ### Set service +attributes+. def modify( attributes ) attributes = stringify_keys( attributes ) super self.category( attributes['category'] )