Class: Backup::Configuration::Adapter
- Inherits:
-
Object
- Object
- Backup::Configuration::Adapter
- Extended by:
- Attributes
- Defined in:
- lib/backup/configuration/adapter.rb
Instance Method Summary collapse
- #get_options ⇒ Object
-
#initialize ⇒ Adapter
constructor
A new instance of Adapter.
- #options(&block) ⇒ Object
Methods included from Attributes
Constructor Details
#initialize ⇒ Adapter
Returns a new instance of Adapter.
7 8 9 |
# File 'lib/backup/configuration/adapter.rb', line 7 def initialize @options = Backup::Configuration::AdapterOptions.new end |
Instance Method Details
#get_options ⇒ Object
15 16 17 |
# File 'lib/backup/configuration/adapter.rb', line 15 def @options end |
#options(&block) ⇒ Object
11 12 13 |
# File 'lib/backup/configuration/adapter.rb', line 11 def (&block) @options.instance_eval &block end |