Class: PlanDrop

Inherits:
Liquid::Simplero::Drop show all
Defined in:
app/drops/plan_drop.rb

Overview

PlanDrop represents the Simplero plan

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#annual_compare_at_priceInteger

Returns price that would be paid in year for a monthly plan

Returns:

  • (Integer)

#annual_compare_at_price_incl_extraInteger

Returns price that would be paid in year for a monthly plan including contact and storage cost based on current usage

Returns:

  • (Integer)

#annual_priceInteger

Returns:

  • (Integer)

#annual_price_incl_extraInteger

Returns:

  • (Integer)

#base_annual_priceInteger

Returns:

  • (Integer)

#base_annual_price_incl_extraInteger

Returns:

  • (Integer)

#base_monthly_priceInteger

Returns:

  • (Integer)

#base_monthly_price_incl_extraInteger

Returns:

  • (Integer)

#blackfriday_annual_priceInteger

Returns:

  • (Integer)

#blackfriday_coupon_codeString

Returns:

  • (String)

#blackfriday_monthly_priceInteger

Returns:

  • (Integer)

#blackfriday_savings_percentageInteger

Returns:

  • (Integer)

#contact_charge_thresholdInteger

Returns:

  • (Integer)

#contact_cost_dataObject

Returns slabs of contacts and their cost. Also, increase in costs for each step increase in contacts

Example:

{
  thresholds: {
    1000  => 0,
    2500  => 20,
    5000  => 50,
    7500  => 70,
    10000 => 90
  },
  step:       2500,
  cost:       15
}

#contacts_limit_for_current_usageObject

#core_featuresArray<PlanFeatureDrop>

Returns:

#feature_hashObject

String (feature_name) => PlanFeatureDrop

#featuresArray<PlanFeatureDrop>

Returns all the features for this plan

Returns:

#handleString

Returns:

  • (String)

#highlighted?Boolean

Returns:

  • (Boolean)

#imageAssetDrop

Returns:

#most_popular?Boolean

Returns:

  • (Boolean)

#non_core_featuresArray<PlanFeatureDrop>

Returns:

#pricing_page_nameString

Returns:

  • (String)

#pricing_page_short_nameString

Returns:

  • (String)

#recommended?Boolean

Returns:

  • (Boolean)

#start_trial_urlString

Returns:

  • (String)

#storageInteger

Returns:

  • (Integer)

#storage_cost_dataObject

#storage_limit_for_current_usageObject

#tag_lineString

Returns:

  • (String)

#tickets?Boolean

Returns whether this plan includes the “Support Tickets” feature

Returns:

  • (Boolean)