Sha256: 80688a49d9c0fa56075be771ca2195d5e53ad708bdde46bbef757324d93670eb

Contents?: true

Size: 313 Bytes

Versions: 9

Compression:

Stored size: 313 Bytes

Contents

module ESA
  module Contexts
    class OpenCloseContext < DateContext
      def effective_contexts
        self.parents_and_self.reject{|ctx| ctx.type == DateContext.to_s}
      end

      protected

      def validate_dates
        # OpenCloseContext can be initialized with no dates
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
event_sourced_accounting-0.2.6 app/models/esa/contexts/open_close_context.rb
event_sourced_accounting-0.2.4 app/models/esa/contexts/open_close_context.rb
event_sourced_accounting-0.2.3 app/models/esa/contexts/open_close_context.rb
event_sourced_accounting-0.2.2 app/models/esa/contexts/open_close_context.rb
event_sourced_accounting-0.1.6 app/models/esa/contexts/open_close_context.rb
event_sourced_accounting-0.1.4 app/models/esa/contexts/open_close_context.rb
event_sourced_accounting-0.1.3 app/models/esa/contexts/open_close_context.rb
event_sourced_accounting-0.1.1 app/models/esa/contexts/open_close_context.rb
event_sourced_accounting-0.1.0 app/models/esa/contexts/open_close_context.rb