Class: Backup::Config::Defaults

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/backup/config/helpers.rb

Overview

Store for pre-configured defaults.

Instance Method Summary collapse

Instance Method Details

#_attributesObject

Returns an Array of all attribute method names that default values were set for.



127
128
129
# File 'lib/backup/config/helpers.rb', line 127

def _attributes
  @table.keys
end

#reset!Object

Used only within the specs



132
133
134
# File 'lib/backup/config/helpers.rb', line 132

def reset!
  @table.clear
end