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