Sha256: 467c107c11547345fab21bfd6084c77936f9573837a616fd60829474a4ecde38

Contents?: true

Size: 793 Bytes

Versions: 5

Compression:

Stored size: 793 Bytes

Contents

#!/usr/bin/env ruby
require File.expand_path(File.dirname(__FILE__) + '/../spec/spec_helper')
require 'time'

class User
  include ROXML
  
  xml_reader :id, :as => Integer
  xml_reader :name
  xml_reader :screen_name
  xml_reader :location
  xml_reader :description
  xml_reader :profile_image_url
  xml_reader :url
  xml_reader :protected?
  xml_reader :followers_count, :as => Integer
end

class Status
  include ROXML
  
  xml_reader :id, :as => Integer
  xml_reader :text
	xml_reader :created_at, :as => Time
	xml_reader :source
	xml_reader :truncated?
	xml_reader :in_reply_to_status_id, :as => Integer
	xml_reader :in_reply_to_user_id, :as => Integer
	xml_reader :favorited?
	xml_reader :user, :as => User
end

class Statuses
  include ROXML

  xml_reader :statuses, :as => [Status]
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
Empact-roxml-2.5.1 examples/twitter.rb
roxml-2.5.1 examples/twitter.rb
roxml-2.5.0 examples/twitter.rb
roxml-2.5.3 examples/twitter.rb
roxml-2.5.2 examples/twitter.rb