@ -5,6 +5,7 @@ LOAD_MODELS = [
Role,
User_Role_relation,
Auction,
Bid,
Auction_Category_relation,
Category,
Image
@ -352,6 +352,16 @@ class Auction < EntityModel
end
# Auction bids
class Bid < EntityModel
attr_reader :amount, :auction_id, :user_id, :message
def initialize(data)
super data
@amount = data["amount"].to_f
# stuff
class Category < EntityModel
attr_reader :name, :color