Class: Ecoportal::API::GraphQL::Base::LocationStructure::Draft::Structure
Constant Summary
Helpers::LocationsTree::RELEVANT_NODES_COUNT
Common::GraphQL::Model::Diffable::DIFF_CLASS
Instance Method Summary
collapse
#treeify
#treeify
#as_input
#as_update, #dirty?
Instance Method Details
#draft ⇒ Object
26
27
28
29
30
|
# File 'lib/ecoportal/api/graphql/base/location_structure/draft/structure.rb', line 26
def draft
return if _parent == self
_parent
end
|
#draft? ⇒ Boolean
10
11
12
|
# File 'lib/ecoportal/api/graphql/base/location_structure/draft/structure.rb', line 10
def draft?
true
end
|
#id ⇒ Object
14
15
16
|
# File 'lib/ecoportal/api/graphql/base/location_structure/draft/structure.rb', line 14
def id
draft&.id
end
|
#name ⇒ Object
18
19
20
|
# File 'lib/ecoportal/api/graphql/base/location_structure/draft/structure.rb', line 18
def name
draft&.name
end
|
#parent_structure ⇒ Object
22
23
24
|
# File 'lib/ecoportal/api/graphql/base/location_structure/draft/structure.rb', line 22
def parent_structure
draft&.parent_structure
end
|