Sha256: 43a5836d2c5e3359b3744d6d25dc0c52537dfd10785617327544d47525a41ab1

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

#!/usr/bin/env ruby
require_relative './../spec/spec_helper'

module GitHub
  class Commit
    include ROXML
    xml_convention :dasherize

    xml_reader :url
    xml_reader :tree
    xml_reader :message
    xml_reader :id
    xml_reader :committed_date, :as => Date
  end
end

unless defined?(Spec)
  commit = GitHub::Commit.from_xml(xml_for('dashed_elements'))
  puts commit.committed_date, commit.url, commit.id, ''
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
representable-0.0.1.alpha1 examples/dashed_elements.rb
roxml-3.1.6 examples/dashed_elements.rb