Sha256: 625d48d809b2c0aefb4ec93c4a124b1860cec673a2e2ab1b487e59c6f3a0d8f1
Contents?: true
Size: 443 Bytes
Versions: 8
Compression:
Stored size: 443 Bytes
Contents
module Redistat class Result < ::ActiveSupport::HashWithIndifferentAccess attr_accessor :from attr_accessor :till alias :date :from alias :date= :from= def initialize(options = {}) @from = options[:from] ||= nil @till = options[:till] ||= nil end def set_or_incr(key, value) self[key] = 0 if !self.has_key?(key) self[key] += value self end end end
Version data entries
8 entries across 8 versions & 1 rubygems