Module: Eco::API::UseCases::GraphQL::Helpers::Location::Command::Diffs::Stages::Commandable

Included in:
Eco::API::UseCases::GraphQL::Helpers::Location::Command::Diffs
Defined in:
lib/eco/api/usecases/graphql/helpers/location/command/diffs/stages/commandable.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#stage_commands(stage) ⇒ Object

builds up the particular graphql location commands



20
21
22
23
24
25
26
27
# File 'lib/eco/api/usecases/graphql/helpers/location/command/diffs/stages/commandable.rb', line 20

def stage_commands(stage)
  stage_command = self.class.stage_command(stage)
  stage_updates(stage).map do |update|
    {}.tap do |comm|
      comm[stage_command] = symbolize_keys(update)
    end
  end
end