Class: Ecoportal::API::GraphQL::Model::Organization
Constant Summary
collapse
- DEFAULT_PATH =
["currentOrganization"]
Class Method Summary
collapse
Methods inherited from Base::Model
as_input, #as_input, #as_update
Class Method Details
40
41
42
43
44
45
46
|
# File 'lib/ecoportal/api/graphql/model/organization.rb', line 40
def actions(**kargs, &block)
if kargs.empty? && !block_given?
actionsQuery
else
actionsQuery.query(**kargs, &block)
end
end
|
31
32
33
34
35
36
37
|
# File 'lib/ecoportal/api/graphql/model/organization.rb', line 31
def contractorEntities(**kargs, &block)
if kargs.empty? && !block_given?
contractorEntitiesQuery
else
contractorEntitiesQuery.query(**kargs, &block)
end
end
|
.path(*add) ⇒ Object
9
10
11
|
# File 'lib/ecoportal/api/graphql/model/organization.rb', line 9
def path(*add)
DEFAULT_PATH.dup.push(*add)
end
|
.tagTrees(**kargs, &block) ⇒ Collection::TagTree, Query::TagTrees
16
17
18
19
20
21
22
|
# File 'lib/ecoportal/api/graphql/model/organization.rb', line 16
def tagTrees(**kargs, &block)
if kargs.empty? && !block_given?
tagTreesQuery
else
tagTreesQuery.query(**kargs, &block)
end
end
|