Class: Backup::Record::FTP
- Defined in:
- lib/backup/record/ftp.rb
Instance Attribute Summary collapse
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#password ⇒ Object
Returns the value of attribute password.
-
#user ⇒ Object
Returns the value of attribute user.
Attributes inherited from Base
#adapter_config, #keep_backups
Instance Method Summary collapse
Methods inherited from Base
destroy_all_backups, #load_adapter
Instance Attribute Details
#ip ⇒ Object
Returns the value of attribute ip.
7 8 9 |
# File 'lib/backup/record/ftp.rb', line 7 def ip @ip end |
#password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/backup/record/ftp.rb', line 7 def password @password end |
#user ⇒ Object
Returns the value of attribute user.
7 8 9 |
# File 'lib/backup/record/ftp.rb', line 7 def user @user end |
Instance Method Details
#load_specific_settings(adapter) ⇒ Object
9 10 11 12 13 |
# File 'lib/backup/record/ftp.rb', line 9 def load_specific_settings(adapter) %w(ip user password path).each do |method| send(:"#{method}=", adapter.procedure.get_storage_configuration.attributes[method]) end end |