Skip to content

Instantly share code, notes, and snippets.

View egutter's full-sized avatar

Emilio Gutter egutter

View GitHub Profile

Checkout page: Shop for dental

-Alexa fill details: +What kind of link should we display? +Which are the conditions to show this link? Always? Only when there is a medical plan (on or off exchange)? +Family and zip/county will be the last updated, what about pre-selected family members: I would recommend to select all members in the family. Given that trying to select the same members of the coverage group for the medical plan, might be complicated if there is more than 1 med plan or if the family has been changed since that medical plan has been added to the cart

Get dental plans workflow

-No QLE selection

Monthly:

Imports all new data for carriers on the Quotit side.

Arguments:

- number of effective dates in the future to download: - Default number is 3 - The logic to calculate the next effective dates is the same as the one used by the application. Therefore the first effective date will be the next month if `day_of_month(Today) < 16` or `next_month+1` otherwise - force load (default false): - when `false` then excludes plans with an `update_at` database attribute within the last 24 hours.
module Cache::MethodCache
def cache(method, options)
return @wrap_next_method = true if method.nil?
wrap(method) if method_defined?(method)
@cached_methods[method] = options[:cache_key]
end
private
def wrap(method)
module Cache::MethodCache
def cache(method, options)
return @wrap_next_method = true if method.nil?
wrap(method) if method_defined?(method)
@cached_methods[method] = options[:cache_key]
end
private
def wrap(method)