Class: Ecoportal::API::GraphQL::Query::Actions
- Inherits:
-
Base::QueryConnection
- Object
- Base::Query
- Base::QueryConnection
- Ecoportal::API::GraphQL::Query::Actions
- Defined in:
- lib/ecoportal/api/graphql/query/actions.rb
Instance Attribute Summary
Attributes inherited from Base::QueryConnection
Attributes inherited from Base::Query
Instance Method Summary collapse
Methods inherited from Base::QueryConnection
#each, #initialize, #response_class
Methods inherited from Base::Query
accepted_params, #access_point, clear_accepted_params, #initialize, #request, #response_class, slice_params, #wrap_response
Constructor Details
This class inherits a constructor from Ecoportal::API::GraphQL::Base::QueryConnection
Instance Method Details
#default_base_path ⇒ Object
18 19 20 |
# File 'lib/ecoportal/api/graphql/query/actions.rb', line 18 def default_base_path ["currentOrganization"] end |
#query(path: default_base_path, **kargs, &block) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/ecoportal/api/graphql/query/actions.rb', line 9 def query(path: default_base_path, **kargs, &block) path ||= default_base_path kargs = self.class.slice_params(kargs) request(*path, "actions") do next client.query(kargs, &basic_block(&block)) if block_given? client.query(kargs, &basic_block) end end |