Class: Funktor::Aws::Sqs::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/funktor/aws/sqs/record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record_data) ⇒ Record

Returns a new instance of Record.



7
8
9
10
# File 'lib/funktor/aws/sqs/record.rb', line 7

def initialize(record_data)
  @record_data = record_data
  @job = Funktor::Job.new(record_data["body"])
end

Instance Attribute Details

#jobObject

Returns the value of attribute job.



6
7
8
# File 'lib/funktor/aws/sqs/record.rb', line 6

def job
  @job
end

#record_dataObject

Returns the value of attribute record_data.



5
6
7
# File 'lib/funktor/aws/sqs/record.rb', line 5

def record_data
  @record_data
end