Sha256: 9abba0158061ebd17d3ce2d0785e7a6f2fdd8eec8aad6502d3ed622df37e4f5b
Contents?: true
Size: 560 Bytes
Versions: 9
Compression:
Stored size: 560 Bytes
Contents
module ThreeScaleToolbox module Commands module PlansCommand module Export class ReadPlanPricingRulesStep include Step ## # Reads Application Plan pricing rules # add metric system_name out of metric_id def call result[:pricingrules] = plan.pricing_rules.map do |pr| pr.merge('metric' => metric_info(pr, 'PricingRule'), 'cost_per_unit' => pr.fetch('cost_per_unit').to_f) end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems