Class: GenerateRoomPlansWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/generate_room_plans_worker.rb

Overview

Sidekiq worker: generate room plans.

Instance Method Summary collapse

Instance Method Details

#perform(room_configuration_id) ⇒ Object

Runs the job.

Parameters:

  • room_configuration_id (Integer)

    the room configuration id

Returns:

  • (Object)

    the result



13
14
15
# File 'app/workers/generate_room_plans_worker.rb', line 13

def perform(room_configuration_id)
  RoomConfiguration.find(room_configuration_id).generate_all_plans
end