Models: Auction model

master
E. Almqvist 3 years ago
parent 98e080bc2c
commit 0357d4f4af
  1. 3
      src/config.rb
  2. 3
      src/db_models.rb

@ -24,3 +24,6 @@ LOGIN_ERRORS = {
fields: "Please fill all of the fields",
fail: "Wrong password and/or email"
}
# Auction stuff
AH_BUYOUT_FACTOR = 1.8

@ -176,5 +176,8 @@ class Auction < EntityModel
def initialize(data)
super data
@title = data["title"]
@description = data["description"]
@start_time = data["start_time"]
@end_time = data["end_time"]
end
end

Loading…
Cancel
Save