Class: Ecoportal::API::GraphQL::Builder::LocationStructure::Draft

Inherits:
Object
  • Object
show all
Defined in:
lib/ecoportal/api/graphql/builder/location_structure/draft.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, parent:) ⇒ Draft

Returns a new instance of Draft.



9
10
11
12
# File 'lib/ecoportal/api/graphql/builder/location_structure/draft.rb', line 9

def initialize(client, parent:)
  @client = client
  @parent = parent
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



7
8
9
# File 'lib/ecoportal/api/graphql/builder/location_structure/draft.rb', line 7

def client
  @client
end

#parentObject (readonly)

Returns the value of attribute parent.



7
8
9
# File 'lib/ecoportal/api/graphql/builder/location_structure/draft.rb', line 7

def parent
  @parent
end

Instance Method Details

#addCommands(**kargs, &block) ⇒ Object



22
23
24
# File 'lib/ecoportal/api/graphql/builder/location_structure/draft.rb', line 22

def addCommands(**kargs, &block)
  addCommandsMutation.query(**kargs, &block)
end

#create(**kargs, &block) ⇒ Object



18
19
20
# File 'lib/ecoportal/api/graphql/builder/location_structure/draft.rb', line 18

def create(**kargs, &block)
  createMutation.query(**kargs, &block)
end

#delete(**kargs, &block) ⇒ Object



26
27
28
# File 'lib/ecoportal/api/graphql/builder/location_structure/draft.rb', line 26

def delete(**kargs, &block)
  deleteMutation.query(**kargs, &block)
end

#DropBadCommands(**kargs, &block) ⇒ Object



34
35
36
# File 'lib/ecoportal/api/graphql/builder/location_structure/draft.rb', line 34

def DropBadCommands(**kargs, &block)
  dropBadCommandsMutation.query(**kargs, &block)
end

#nodeClassifications(**kargs, &block) ⇒ Object



14
15
16
# File 'lib/ecoportal/api/graphql/builder/location_structure/draft.rb', line 14

def nodeClassifications(**kargs, &block)
  parent.nodeClassifications(**kargs, &block)
end

#publish(**kargs, &block) ⇒ Object



30
31
32
# File 'lib/ecoportal/api/graphql/builder/location_structure/draft.rb', line 30

def publish(**kargs, &block)
  publishMutation.query(**kargs, &block)
end