push
github
3 of 3 new or added lines in 1 file covered. (100.0%)
2128 of 13343 relevant lines covered (15.95%)
0.99 hits per line
1 |
class DrugPresenter |
× |
2 |
def initialize(drug) |
× |
3 |
@drug = drug
|
× |
4 |
end
|
× |
5 |
|
|
6 |
def as_json(options = {}) |
× |
7 |
{ |
× |
8 |
id: @drug.id, |
× |
9 |
name: @drug.name, |
× |
10 |
ncit_id: @drug.ncit_id, |
× |
11 |
aliases: @drug.drug_aliases.map{|a| a.name}, |
× |
12 |
} |
× |
13 |
end
|
× |
14 |
end
|
× |