Class: Ecoportal::API::GraphQL::Builder::Action
- Inherits:
-
Object
- Object
- Ecoportal::API::GraphQL::Builder::Action
- Defined in:
- lib/ecoportal/api/graphql/builder/action.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #archive(**kargs, &block) ⇒ Object
- #create(**kargs, &block) ⇒ Object
-
#initialize(client) ⇒ Action
constructor
A new instance of Action.
- #update(**kargs, &block) ⇒ Object
Constructor Details
#initialize(client) ⇒ Action
Returns a new instance of Action.
8 9 10 |
# File 'lib/ecoportal/api/graphql/builder/action.rb', line 8 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/ecoportal/api/graphql/builder/action.rb', line 6 def client @client end |
Instance Method Details
#archive(**kargs, &block) ⇒ Object
12 13 14 |
# File 'lib/ecoportal/api/graphql/builder/action.rb', line 12 def archive(**kargs, &block) archiveMutation.query(**kargs, &block) end |
#create(**kargs, &block) ⇒ Object
20 21 22 |
# File 'lib/ecoportal/api/graphql/builder/action.rb', line 20 def create(**kargs, &block) createMutation.query(**kargs, &block) end |
#update(**kargs, &block) ⇒ Object
16 17 18 |
# File 'lib/ecoportal/api/graphql/builder/action.rb', line 16 def update(**kargs, &block) updateMutation.query(**kargs, &block) end |