Sha256: 9fb3eb7ad0d647c522191e7d46ec0b65f1529f8f44a521563bdaa5120220bcbd

Contents?: true

Size: 779 Bytes

Versions: 3

Compression:

Stored size: 779 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, User
end

class Statuses
  include ROXML

  xml_reader :statuses, [Status]
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
Empact-roxml-2.4.3 examples/twitter.rb
roxml-2.4.3 examples/twitter.rb
roxml-2.4.2 examples/twitter.rb