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.



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

def _attributes
  @table.keys
end

#reset!Object

Used only within the specs



137
138
139
# File 'lib/backup/config/helpers.rb', line 137

def reset!
  @table.clear
end