Sha256: 2ca98bd39a00c018805e1e222568407577e5e53eefe3048d73ff605cbed99547

Contents?: true

Size: 862 Bytes

Versions: 13

Compression:

Stored size: 862 Bytes

Contents

require "renalware/hd"

module Renalware
  module HD
    NullSlot = Naught.build do |config|
      config.black_hole
      config.define_explicit_conversions
      config.predicates_return false

      attr_reader :diary_id, :diurnal_period_code_id, :station_id, :day_of_week

      def initialize(diary_id, diurnal_period_code_id, station_id, day_of_week)
        @diary_id = diary_id
        @diurnal_period_code_id = diurnal_period_code_id
        @station_id = station_id
        @day_of_week = day_of_week
      end

      def master?
        false
      end

      def cell_id
        "#{diurnal_period_code_id}-#{station_id}-#{day_of_week}"
      end

      def cache_key
        [
          self.class.name,
          diary_id,
          diurnal_period_code_id,
          station_id,
          day_of_week
        ].join("-")
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/hd/null_slot.rb