Class: Ensembl::Variation::AttribType
- Inherits:
-
ModelBase
- Object
- ActiveRecord::Base
- Connection
- ModelBase
- Ensembl::Variation::AttribType
- Defined in:
- lib/ensembl/variation/activerecord.rb
Class Method Summary collapse
Methods included from PrimaryKeyOverrides
Methods inherited from Connection
Methods included from TableNameOverrides
Class Method Details
.key(value) ⇒ Object
74 75 76 |
# File 'lib/ensembl/variation/activerecord.rb', line 74 def self.key(value) mapping_hash.key(value) end |
.mapping_hash ⇒ Object
70 71 72 |
# File 'lib/ensembl/variation/activerecord.rb', line 70 def self.mapping_hash @mapping_hash||={14=>:risk_allele,15=>:p_value,23=>:odds_ratio,24=>:beta} end |
.symbol(key) ⇒ Object
78 79 80 |
# File 'lib/ensembl/variation/activerecord.rb', line 78 def self.symbol(key) mapping_hash[key] end |