Class: Ecoportal::API::GraphQL::Interface::LocationStructure::Nodes

Inherits:
Logic::BaseModel show all
Extended by:
Helpers::LocationsTree
Defined in:
lib/ecoportal/api/graphql/interface/location_structure/nodes.rb

Constant Summary

Constants included from Helpers::LocationsTree

Helpers::LocationsTree::RELEVANT_NODES_COUNT

Constants included from Common::GraphQL::Model::Diffable

Common::GraphQL::Model::Diffable::DIFF_CLASS

Instance Method Summary collapse

Methods included from Common::GraphQL::Model::AsInput

#as_input

Methods included from Common::GraphQL::Model::Diffable

#as_update, #dirty?

Instance Method Details

#draft?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/ecoportal/api/graphql/interface/location_structure/nodes.rb', line 15

def draft?
  false
end

#treeifyObject



19
20
21
# File 'lib/ecoportal/api/graphql/interface/location_structure/nodes.rb', line 19

def treeify
  self.class.treeify(nodes)
end