Sha256: f0d8b853d39b08a0cd4fb906b4b3c72754d24da8971dc26ad57905b5db7a8c66

Contents?: true

Size: 387 Bytes

Versions: 5

Compression:

Stored size: 387 Bytes

Contents

class AssetLookupService

  def 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
daengine-0.2.12 app/service/asset_lookup_service.rb
daengine-0.2.11 app/service/asset_lookup_service.rb
daengine-0.2.10 app/service/asset_lookup_service.rb
daengine-0.2.9 app/service/asset_lookup_service.rb
daengine-0.2.8 app/service/asset_lookup_service.rb