lk & sh | posts to bike index in development when creating new bike

This commit is contained in:
Loos
2015-08-06 20:29:46 -05:00
parent 66c43e57c2
commit 3224faab0e
12 changed files with 137 additions and 2 deletions
+13
View File
@@ -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