Sha256: d8140cf31e17f6a34bb542c8c45bc8a60311b15a2cc1fefa43a79c62a135d6ec
Contents?: true
Size: 420 Bytes
Versions: 8
Compression:
Stored size: 420 Bytes
Contents
class Company < Quarto::ElementWrapper::Base element_attrs :name, :industry, :description children :employees children :products, :collection_element => 'selling' children :locations, :collection_element => nil child :mascot def competitors @competitors ||= self.class.find(:all, :xpath => "companies/company[industry='#{industry}' and name!='#{name}']") end def to_path 'companies.html' end end
Version data entries
8 entries across 8 versions & 1 rubygems