class GeneNames::Record
Public Class Methods
find_all(value, type = :symbol)
click to toggle source
# File lib/gene_names/record.rb, line 11 def self.find_all(value, type = :symbol) GeneNames::HTTP.fetch(value, type) end
new(params = {})
click to toggle source
# File lib/gene_names/record.rb, line 7 def initialize(params = {}) params.map{|k,v| self.send(k + '=', v)} end
Public Instance Methods
chromosome()
click to toggle source
# File lib/gene_names/record.rb, line 15 def chromosome self.location.gsub(/^(\d+).*$/, '\1') end