Sha256: 82185c0c6ad97345bd15fbf3da02f31842f0e498eb13553823acb61339cefb65

Contents?: true

Size: 498 Bytes

Versions: 10

Compression:

Stored size: 498 Bytes

Contents

module ThreeScaleToolbox
  module CRD
    module ApplicationPlanSerializer
      def to_cr
        {
          'name' => name,
          'appsRequireApproval' => approval_required?,
          'trialPeriod' => trial_period_days,
          'setupFee' => setup_fee,
          'custom' => custom,
          'state' => state,
          'costMonth' => cost_per_month,
          'pricingRules' => pricing_rules.map(&:to_cr),
          'limits' => limits.map(&:to_cr)
        }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
3scale_toolbox-1.0.1 lib/3scale_toolbox/crds/application_plan_dump.rb
3scale_toolbox-1.0.0 lib/3scale_toolbox/crds/application_plan_dump.rb
3scale_toolbox-0.20.0 lib/3scale_toolbox/crds/application_plan_dump.rb
3scale_toolbox-0.19.3 lib/3scale_toolbox/crds/application_plan_dump.rb
3scale_toolbox-0.19.2 lib/3scale_toolbox/crds/application_plan_dump.rb
3scale_toolbox-0.19.1 lib/3scale_toolbox/crds/application_plan_dump.rb
3scale_toolbox-0.19.0 lib/3scale_toolbox/crds/application_plan_dump.rb
3scale_toolbox-0.18.3 lib/3scale_toolbox/crds/application_plan_dump.rb
3scale_toolbox-0.18.2 lib/3scale_toolbox/crds/application_plan_dump.rb
3scale_toolbox-0.18.0 lib/3scale_toolbox/crds/application_plan_dump.rb