Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 314 Bytes
require 'rubygems'
require 'hpricot'
module Gattica
class Segment
include Convertible
attr_reader :id, :name, :definition
def initialize(xml)
@id = xml.attributes['id']
@name = xml.attributes['name']
@definition = xml.at("dxp:definition").inner_html
end
end
end
Something went wrong with that request. Please try again.