Sha256: c7687ac3ea9595d203c21ab35726a62fcc94312b1daa59fcc423be9053be1317
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require File.join(dir, 'happymapper') file_contents = File.read(dir + '/../spec/fixtures/commit.xml') module GitHub class Commit include HappyMapper tag "commit" element :url, String element :tree, String element :message, String element :id, String element :'committed-date', Date end end commits = GitHub::Commit.parse(file_contents) commits.each do |commit| puts commit.committed_date, commit.url, commit.id end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
happymapper-0.1.7 | examples/dashed_elements.rb |