Module: RobotConfiguration::BedHelpers

Included in:
Register, Simple
Defined in:
lib/robot_configuration.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#bed(number) ⇒ Object



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

def bed(number)
  barcode = SBCF::SangerBarcode.new(prefix: 'BD', number: number)
  ean13 = barcode.machine_barcode.to_s
  BedOrCar.new(ean13, "Bed #{number}")
end

#car(position) ⇒ Object



14
15
16
17
18
19
# File 'lib/robot_configuration.rb', line 14

def car(position)
  number = position.tr(',', '').to_i
  barcode = SBCF::SangerBarcode.new(prefix: 'BD', number: number)
  ean13 = barcode.machine_barcode.to_s
  BedOrCar.new(ean13, "Carousel #{position}")
end