Module: ThreeScaleToolbox::CRD::ApplicationPlanSerializer
- Included in:
- Entities::ApplicationPlan
- Defined in:
- lib/3scale_toolbox/crds/application_plan_dump.rb
Instance Method Summary collapse
Instance Method Details
#to_cr ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# 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 |