M
Mitko Kostov
Hello, guys. I'm learning now Ruby and Shoes.
I'm using this code to get username and it's status from twitter:
@name = []
@status = []
def timeline
Twitter::Base.new('username','password').timeline.each do |s|
@name << s.user.name
@status << s.text
end
[@name, @status]
end
t = timeline
And then t is [["John", "Daniel", "Marry"],["Having
launch","Sleeping","Bored"]]
And in Shoes I have to use para to print the name and the status, but
don't know how.
Suggestions ?
Mitko Kostov.
I'm using this code to get username and it's status from twitter:
@name = []
@status = []
def timeline
Twitter::Base.new('username','password').timeline.each do |s|
@name << s.user.name
@status << s.text
end
[@name, @status]
end
t = timeline
And then t is [["John", "Daniel", "Marry"],["Having
launch","Sleeping","Bored"]]
And in Shoes I have to use para to print the name and the status, but
don't know how.
Suggestions ?
Mitko Kostov.