module Ecoportal module API class GraphQL module Builder class Action attr_reader :client def initialize(client) @client = client end def archive(**kargs, &block) archiveMutation.query(**kargs, &block) end def update(**kargs, &block) updateMutation.query(**kargs, &block) end private def archiveMutation Ecoportal::API::GraphQL::Mutation::Action::Archive.new(client) end def updateMutation Ecoportal::API::GraphQL::Mutation::Action::Update.new(client) end end end end end end