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_price ⇒ Integer

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

Returns:

  • (Integer)

#annual_compare_at_price_incl_extra ⇒ Integer

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

Returns:

  • (Integer)

#annual_price ⇒ Integer

Returns:

  • (Integer)

#annual_price_incl_extra ⇒ Integer

Returns:

  • (Integer)

#base_annual_price ⇒ Integer

Returns:

  • (Integer)

#base_annual_price_incl_extra ⇒ Integer

Returns:

  • (Integer)

#base_monthly_price ⇒ Integer

Returns:

  • (Integer)

#base_monthly_price_incl_extra ⇒ Integer

Returns:

  • (Integer)

#blackfriday_annual_price ⇒ Integer

Returns:

  • (Integer)

#blackfriday_coupon_code ⇒ String

Returns:

  • (String)

#blackfriday_monthly_price ⇒ Integer

Returns:

  • (Integer)

#blackfriday_savings_percentage ⇒ Integer

Returns:

  • (Integer)

#contact_charge_threshold ⇒ Integer

Returns:

  • (Integer)

#contact_cost_data ⇒ Object

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_usage ⇒ Object

#core_features ⇒ Array<PlanFeatureDrop>

Returns:

#feature_hash ⇒ Object

String (feature_name) => PlanFeatureDrop

#features ⇒ Array<PlanFeatureDrop>

Returns all the features for this plan

Returns:

#handle ⇒ String

Returns:

  • (String)

#highlighted? ⇒ Boolean

Returns:

  • (Boolean)

#image ⇒ AssetDrop

Returns:

#most_popular? ⇒ Boolean

Returns:

  • (Boolean)

#non_core_features ⇒ Array<PlanFeatureDrop>

Returns:

#pricing_page_name ⇒ String

Returns:

  • (String)

#pricing_page_short_name ⇒ String

Returns:

  • (String)

#recommended? ⇒ Boolean

Returns:

  • (Boolean)

#start_trial_url ⇒ String

Returns:

  • (String)

#storage ⇒ Integer

Returns:

  • (Integer)

#storage_cost_data ⇒ Object

#storage_limit_for_current_usage ⇒ Object

#tag_line ⇒ String

Returns:

  • (String)

#tickets? ⇒ Boolean

Returns whether this plan includes the “Support Tickets” feature

Returns:

  • (Boolean)