Sha256: d7a9bbffbce4893b91eae3349e684bf6da8ff01839557bd32dd0b06cfa65e1df
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 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", :root => true element :url, String element :tree, String element :message, String element :id, String element :'committed-date', Date end end commit = GitHub::Commit.parse(file_contents) puts commit.committed_date, commit.url, commit.id
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jnunemaker-happymapper-0.2.0 | examples/dashed_elements.rb |
happymapper-0.2.0 | examples/dashed_elements.rb |