Sha256: b36bd662072460a6a51d208db6d43eef27fb2c067dfba8eafabfcf1a1e76762e

Contents?: true

Size: 466 Bytes

Versions: 12

Compression:

Stored size: 466 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.tap { |l| l['metric'] = metric_info(l, 'Limit') }
            end
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
3scale_toolbox-0.17.1 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.17.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.16.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.15.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.14.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.13.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.12.4 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.12.3 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.12.2 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.11.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.10.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
3scale_toolbox-0.9.0 lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb