lib/eco/api/session/config.rb in eco-helpers-2.5.10 vs lib/eco/api/session/config.rb in eco-helpers-2.6.0
- old
+ new
@@ -255,9 +255,16 @@
# @return [Eco::API::Organization::TagTree]
def live_tree(id: nil, enviro: nil, **kargs, &block)
tagtree_config.live_tree(id: id, enviro: enviro, **kargs, &block)
end
+ # Retrieves all the location structures of the organisation
+ # @param include_archived [Boolean] whether or not to include archived **nodes**
+ # @return [Array<Eco::API::Organization::TagTree>]
+ def live_trees(**kargs, &block)
+ tagtree_config.live_trees(**kargs, &block)
+ end
+
# @return [Eco::API::Organization::PolicyGroups]
def policy_groups
return @policy_groups if instance_variable_defined?(:@policy_groups)
pgs = api&.policy_groups.to_a
@policy_groups = Eco::API::Organization::PolicyGroups.new(pgs)