Sha256: 12f9ca043a0ef418cf600de60c62e5feec944e23588b67f2dc21b23067d28d9a

Contents?: true

Size: 344 Bytes

Versions: 19

Compression:

Stored size: 344 Bytes

Contents

require_relative 'local_libs'

api = Ecoportal::API::GraphQL.new
kargs = {
  includeArchived: false,
  includeUnpublished: false
}
trees = api.currentOrganization.locationStructures(**kargs)
trees.each_with_index do |tree, idx|
  puts "#{tree.weight}. '#{tree.name}' (#{tree.id})"
end

trees.each do |tree|
  pp tree.treeify
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.4.3 tests/loc_structures_get.rb
ecoportal-api-graphql-0.4.2 tests/loc_structures_get.rb
ecoportal-api-graphql-0.4.1 tests/loc_structures_get.rb
ecoportal-api-graphql-0.4.0 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.16 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.15 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.14 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.13 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.12 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.11 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.10 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.9 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.8 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.7 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.6 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.5 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.3 tests/loc_structures_get.rb
ecoportal-api-graphql-0.3.1 tests/loc_structures_get.rb
ecoportal-api-graphql-0.2.3 tests/loc_structures_get.rb