Class: AffiliateWindow::ETL::Scheduler::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/affiliate_window/etl/scheduler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, args = {}) ⇒ Job

Returns a new instance of Job.



56
57
58
59
# File 'lib/affiliate_window/etl/scheduler.rb', line 56

def initialize(type, args = {})
  self.type = type
  self.args = args
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



54
55
56
# File 'lib/affiliate_window/etl/scheduler.rb', line 54

def args
  @args
end

#typeObject

Returns the value of attribute type.



54
55
56
# File 'lib/affiliate_window/etl/scheduler.rb', line 54

def type
  @type
end

Instance Method Details

#==(other) ⇒ Object



61
62
63
# File 'lib/affiliate_window/etl/scheduler.rb', line 61

def ==(other)
  type == other.type && args == other.args
end