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.21 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.20 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.19 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.18 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.17 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.16 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.15 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.14 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.13 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.12 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.11 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.10 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.9 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.8 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.7 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.6 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.5 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.4 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.3 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb
eco-helpers-3.0.2 lib/eco/api/usecases/graphql/helpers/location/command/diffs.rb