Sha256: 3f1e42d0ef24c54efa5f64884f7e514a2dd252741a47852b325e2a79e4b93417

Contents?: true

Size: 314 Bytes

Versions: 5

Compression:

Stored size: 314 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
readmedia-gattica-0.6.2.1 lib/gattica/segment.rb
chrisle-gattica-0.6.3 lib/gattica/segment.rb
songphi-gattica-0.5.3 lib/gattica/segment.rb
betapond-gattica-0.5.2 lib/gattica/segment.rb
betapond-gattica-0.5.1 lib/gattica/segment.rb