Sha256: 23be5d39fe1263d3a38217ecedee3afc2834bde2220b6c9fe2abcbef83d5d990
Contents?: true
Size: 658 Bytes
Versions: 4
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true module SuperSettings module Storage # Generic class that can be extended to represent a history record for a setting in memory. class HistoryAttributes include SuperSettings::Attributes attr_accessor :key, :value, :changed_by attr_writer :deleted attr_reader :created_at def initialize(*) @key = nil @value = nil @changed_by = nil @created_at = nil @deleted = false super end def created_at=(val) @created_at = TimePrecision.new(val).time end def deleted? !!@deleted end end end end
Version data entries
4 entries across 4 versions & 1 rubygems