class DigitalAssetLookupService def self.find_documents_by_fund_code(fund_code) da=[] taxonomy_term = TaxonomyTerm.send(:fund_code_is, fund_code) unless taxonomy_term.nil? p "Found product_id => #{taxonomy_term[0].term_id} for fund_code => #{fund_code} from Taxonomy." da = DigitalAsset.send(:product_in, [taxonomy_term[0].term_id]) end da end end