Sha256: 34d408588dfe53318ba0fc560a3291bbe7f1681183e6ec19d2d8534b73b771a9

Contents?: true

Size: 735 Bytes

Versions: 9

Compression:

Stored size: 735 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.4.3 lib/ecoportal/api/graphql/builder/action.rb
ecoportal-api-graphql-0.4.2 lib/ecoportal/api/graphql/builder/action.rb
ecoportal-api-graphql-0.4.1 lib/ecoportal/api/graphql/builder/action.rb
ecoportal-api-graphql-0.4.0 lib/ecoportal/api/graphql/builder/action.rb
ecoportal-api-graphql-0.3.16 lib/ecoportal/api/graphql/builder/action.rb
ecoportal-api-graphql-0.3.15 lib/ecoportal/api/graphql/builder/action.rb
ecoportal-api-graphql-0.3.14 lib/ecoportal/api/graphql/builder/action.rb
ecoportal-api-graphql-0.3.13 lib/ecoportal/api/graphql/builder/action.rb
ecoportal-api-graphql-0.3.12 lib/ecoportal/api/graphql/builder/action.rb