Sha256: 169b1d433379c6263525106269665ae939edc2e8f77cbbcd662d843b0c27c72b

Contents?: true

Size: 469 Bytes

Versions: 6

Compression:

Stored size: 469 Bytes

Contents

module ThreeScaleToolbox
  module Commands
    module PlansCommand
      module Export
        class ReadPlanLimitsStep
          include Step
          ##
          # Reads Application Plan limits
          # add metric system_name out of metric_id
          def call
            result[:limits] = plan.limits.map do |limit|
              limit.attrs.merge('metric' => metric_info(limit, 'Limit'))
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
3scale_toolbox-0.19.2 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.19.1 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.19.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.18.3 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.18.2 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.18.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb