Sha256: bab2fb72709f37d64c745e04977a9dc3a6915b3a753d42f71c6019ac9a714af4

Contents?: true

Size: 674 Bytes

Versions: 40

Compression:

Stored size: 674 Bytes

Contents

# The order in which updates should happen:
# @note several challenges were found during the design of this class:
#   This translated into dividing the command sequence into different `STAGES`.
module Eco::API::UseCases::GraphQL::Helpers::Location
  class Command::Diffs < Eco::Data::Locations::NodeDiff::NodesDiff
    class_resolver :diff_result_class, Command::Diff

    require_relative 'diffs/stages'

    include Stages::Commandable

    def commands
      self.class.stages.each_with_object([]) do |stage, out|
        comms = stage_commands(stage)
        out.concat(comms)
        yield(comms, stage) if block_given?
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
eco-helpers-3.0.1 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.0 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.25 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.24 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.23 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.22 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.21 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.20 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.19 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.18 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.17 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.16 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.15 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.14 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.13 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.12 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.4 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.2 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.1 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-2.7.0 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb