Sha256: 65ecf67a46d753dda3388c029bc1f39dde13dc74e0c53c6aa57cf27b05ed3c4c

Contents?: true

Size: 893 Bytes

Versions: 106

Compression:

Stored size: 893 Bytes

Contents

# frozen_string_literal: true

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

106 entries across 106 versions & 1 rubygems

Version Path
renalware-core-2.0.92 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.91 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.90 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.89 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.88 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.87 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.86 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.85 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.84 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.83 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.82 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.81 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.80 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.79 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.78 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.77 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.76 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.75 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.74 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.73 app/presenters/renalware/hd/null_slot.rb