Sha256: 821f3b358b48c6a3663c85490fc68a339dffe3f19ddfd37ebfbabd25856e4068

Contents?: true

Size: 599 Bytes

Versions: 8

Compression:

Stored size: 599 Bytes

Contents

module Ecoportal
  module API
    class GraphQL
      module Base
        class LocationStructure < Ecoportal::API::GraphQL::Base::Model
          extend Ecoportal::API::GraphQL::Helpers::LocationsTree

          passkey :id
          passthrough :name, :weight
          passboolean :archived, :published, :visitorManagementEnabled
          embeds_many :nodes, klass: Ecoportal::API::GraphQL::Base::LocationNode, order_key: :weight
          passthrough :draft

          def treeify
            self.class.treeify(nodes)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.3.7 lib/ecoportal/api/graphql/base/location_structure.rb
ecoportal-api-graphql-0.3.6 lib/ecoportal/api/graphql/base/location_structure.rb
ecoportal-api-graphql-0.3.5 lib/ecoportal/api/graphql/base/location_structure.rb
ecoportal-api-graphql-0.3.3 lib/ecoportal/api/graphql/base/location_structure.rb
ecoportal-api-graphql-0.3.1 lib/ecoportal/api/graphql/base/location_structure.rb
ecoportal-api-graphql-0.2.3 lib/ecoportal/api/graphql/base/location_structure.rb
ecoportal-api-graphql-0.2.2 lib/ecoportal/api/graphql/base/location_structure.rb
ecoportal-api-graphql-0.2.1 lib/ecoportal/api/graphql/base/location_structure.rb