Class: AzkabanScheduler::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/azkaban_scheduler/job.rb

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Job

Returns a new instance of Job.


3
4
5
# File 'lib/azkaban_scheduler/job.rb', line 3

def initialize(params)
  @params = params
end

Instance Method Details

#write(io) ⇒ Object


7
8
9
10
11
# File 'lib/azkaban_scheduler/job.rb', line 7

def write(io)
  @params.each do |key, value|
    io.puts("#{key}=#{value}")
  end
end