Class: ThreeScaleToolbox::Commands::PlansCommand::Export::ReadPlanLimitsStep
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::PlansCommand::Export::ReadPlanLimitsStep
- Includes:
- Step
- Defined in:
- lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb
Instance Attribute Summary
Attributes included from Step
Instance Method Summary collapse
-
#call ⇒ Object
Reads Application Plan limits add metric system_name out of metric_id.
Methods included from Step
#file, #initialize, #metric_info, #plan, #plan_system_name, #result, #service, #service_methods, #service_metrics, #service_system_name, #threescale_client
Instance Method Details
#call ⇒ Object
Reads Application Plan limits add metric system_name out of metric_id
10 11 12 13 14 |
# 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.tap { |l| l['metric'] = metric_info(l, 'Limit') } end end |