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.113 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.112 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.111 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.110 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.109 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.108 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.106 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.105 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.104 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.103 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.102 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.101 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.100 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.99 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.98 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.97 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.96 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.95 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.94 app/presenters/renalware/hd/null_slot.rb
renalware-core-2.0.93 app/presenters/renalware/hd/null_slot.rb