mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-17 00:51:39 -04:00
lk & sh | posts to bike index in development when creating new bike
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user