You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
332 B
13 lines
332 B
class BikeIndexBikeGenerator
|
|
def self.create_bike_index_bike(bike)
|
|
{
|
|
serial: bike.serial_number,
|
|
manufacturer: bike.brand,
|
|
owner_email: ENV["OWNER_EMAIL"],
|
|
color: bike.color,
|
|
is_for_sale: bike.purpose != "freecyclery",
|
|
frame_model: bike.model,
|
|
no_notify: true
|
|
}.to_json
|
|
end
|
|
end
|
|
|