age/location issues with company model. should be industry

master
Matt Huntington 8 years ago
parent 3f29e03235
commit 46e637a953

@ -6,7 +6,7 @@ class Company
def initialize(opts = {}) def initialize(opts = {})
@id = opts["id"].to_i @id = opts["id"].to_i
@name = opts["name"] @name = opts["name"]
@age = opts["industry"] @industry = opts["industry"]
if opts["employees"] if opts["employees"]
@employees = opts["employees"] @employees = opts["employees"]
end end
@ -34,7 +34,7 @@ class Company
company = Company.new({ company = Company.new({
"id" => result["id"], "id" => result["id"],
"name" => result["name"], "name" => result["name"],
"location" => result["location"], "industry" => result["industry"],
"employees" => [] "employees" => []
}); });
companies.push(company) companies.push(company)

Loading…
Cancel
Save