module ThreeScaleToolbox::CRD::ApplicationPlanSerializer

Public Instance Methods

to_cr() click to toggle source
# File lib/3scale_toolbox/crds/application_plan_dump.rb, line 4
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