Class: RDSBackup::DelayedJob

Inherits:
Struct
  • Object
show all
Defined in:
lib/rds_backup_service/model/delayed_job.rb

Overview

convenience wrapper class for DelayedJob. Parameters are the same as for RDSBackup::Job.initialize()

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



4
5
6
# File 'lib/rds_backup_service/model/delayed_job.rb', line 4

def options
  @options
end

#rds_idObject

Returns the value of attribute rds_id

Returns:

  • (Object)

    the current value of rds_id



4
5
6
# File 'lib/rds_backup_service/model/delayed_job.rb', line 4

def rds_id
  @rds_id
end

Instance Method Details

#performObject

Entry point for the DelayedJob framework.



6
7
8
# File 'lib/rds_backup_service/model/delayed_job.rb', line 6

def perform
  RDSBackup::Job.new(rds_id, options).perform_backup
end