Sha256: a2cfcae3fc918ccd24cb445c9477e22a6f261aff51c018be652308a14f3bb405

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

module Ecoportal
  module API
    class GraphQL
      module Base
        class TagTree < Ecoportal::API::GraphQL::Base::Model
          extend Ecoportal::API::GraphQL::Helpers::TagTree

          passkey :id
          passthrough :name
          passboolean :visitorManagementEnabled
          embeds_many :nodes, klass: Ecoportal::API::GraphQL::Base::TagTreeNode, order_key: :weight

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.1.11 lib/ecoportal/api/graphql/base/tag_tree.rb
ecoportal-api-graphql-0.1.10 lib/ecoportal/api/graphql/base/tag_tree.rb
ecoportal-api-graphql-0.1.9 lib/ecoportal/api/graphql/base/tag_tree.rb
ecoportal-api-graphql-0.1.8 lib/ecoportal/api/graphql/base/tag_tree.rb
ecoportal-api-graphql-0.1.7 lib/ecoportal/api/graphql/base/tag_tree.rb