Class: ESA::Contexts::OpenCloseContext

Inherits:
DateContext show all
Defined in:
app/models/esa/contexts/open_close_context.rb

Instance Method Summary collapse

Methods inherited from DateContext

#following_context, #preceeding_context

Methods inherited from ESA::Context

#amounts, #apply, #can_be_persisted?, #change_total, #check_freshness, #closing_context, #effective_end_date, #effective_path, #effective_start_date, #events, #flags, #has_subcontext_namespaces?, #is_fresh?, #is_root?, #is_subcontext?, #is_update_needed?, #last_transaction_time, #next_freshness_timestamp, #opening_context, #subcontext_namespaces, #transactions, #update!, #update_freshness_timestamp!

Instance Method Details

#effective_contextsObject



4
5
6
# File 'app/models/esa/contexts/open_close_context.rb', line 4

def effective_contexts
  self.parents_and_self.reject{|ctx| ctx.type == DateContext.to_s}
end