class SiteHealth::CheckData
Public Class Methods
new()
click to toggle source
# File lib/site_health/check_data.rb, line 7 def initialize @data = {} end
Public Instance Methods
[](key)
click to toggle source
# File lib/site_health/check_data.rb, line 11 def [](key) @data[key] end
add(hash)
click to toggle source
Adds data @param [Hash] the hash to be added @return [Hash] the current data
# File lib/site_health/check_data.rb, line 18 def add(hash) @data.merge!(hash) end
each(&block)
click to toggle source
# File lib/site_health/check_data.rb, line 27 def each(&block) @data.each(&block) end
empty?()
click to toggle source
@return [TrueClass, FalseClass] true if there is no data
# File lib/site_health/check_data.rb, line 23 def empty? @data.empty? end
to_h()
click to toggle source
# File lib/site_health/check_data.rb, line 31 def to_h @data.to_h end