My First app in Ruby

My first app written in Ruby, done as a part of a homework assignment for CS473 class at CSUF (Web Development) has to deal with Twitter’s public timeline.

Simply, it outputs the usernames and statuses that appear on Twitter’s public timeline (

The app requires Ruby along with the following gems installed:
gem install faraday_middleware
gem install twitter

#!/user/bin/env ruby

require "rubygems"
require "twitter"

statuses = Twitter.public_timeline
statuses.each do |status|
puts ‘User: ‘ + status.user.screen_name , ‘Status: ‘ + status.text

Simple, but it does the job !

Here is a screenshot of the output of the program (ruby twitter.rb):

public timeline – Twitter

You may also like

More in Code Blog
German Enigma Machine

German Enigma machine