Class: BackgroundBunnies::Job

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload, info = nil, properties = nil) ⇒ Job

Returns a new instance of Job.



8
9
10
11
12
# File 'lib/background_bunnies/job.rb', line 8

def initialize(payload, info = nil, properties = nil)
  @info = info
  @properties = properties
  @payload = payload
end

Instance Attribute Details

#infoObject (readonly) Also known as: metadata

Returns the value of attribute info.



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

def info
  @info
end

#payloadObject (readonly)

Returns the value of attribute payload.



5
6
7
# File 'lib/background_bunnies/job.rb', line 5

def payload
  @payload
end

#propertiesObject (readonly)

Returns the value of attribute properties.



4
5
6
# File 'lib/background_bunnies/job.rb', line 4

def properties
  @properties
end