class Tinypass::PricingPolicy

Attributes

price_options[R]

Public Class Methods

new(price_options) click to toggle source
# File lib/tinypass/policies/pricing_policy.rb, line 5
def initialize(price_options)
  @price_options = Array(price_options)
end

Public Instance Methods

has_active_options?() click to toggle source
# File lib/tinypass/policies/pricing_policy.rb, line 9
def has_active_options?
  price_options.any? { |price_option| price_option.active? }
end