Module: Eco::API::UseCases::GraphQL::Helpers::Location::Command::Diffs::Stages::Commandable
- Defined in:
- lib/eco/api/usecases/graphql/helpers/location/command/diffs/stages/commandable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#stage_commands(stage) ⇒ Object
builds up the particular graphql location commands.
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 |