class ThreeScaleToolbox::Commands::PlansCommand::Export::ReadPlanLimitsStep

Public Instance Methods

call() click to toggle source

Reads Application Plan limits add metric system_name out of metric_id

# File lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb, line 10
def call
  result[:limits] = plan.limits.map do |limit|
    limit.attrs.merge('metric' => metric_info(limit, 'Limit'))
  end
end