Class: ThreeScaleToolbox::Commands::PlansCommand::Export::ReadPlanMethods
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::PlansCommand::Export::ReadPlanMethods
- Includes:
- Step
- Defined in:
- lib/3scale_toolbox/commands/plans_command/export/read_plan_methods_step.rb
Instance Attribute Summary
Attributes included from Step
Instance Method Summary collapse
-
#call ⇒ Object
Compute unique list of methods from limits and pricingrules.
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
Compute unique list of methods from limits and pricingrules
9 10 11 12 13 14 15 |
# File 'lib/3scale_toolbox/commands/plans_command/export/read_plan_methods_step.rb', line 9 def call methods = [ limit_methods, pricingrule_methods ] result[:plan_methods] = methods.each_with_object({}) { |elem, acc| acc.merge!(elem) } end |