I am collecting tweets using a 'Twitter' gem, gem doc, github page. As it filters tweets according to a criteria, eg:
client.filter(locations: "-122.75,36.8,-121.75,37.8") do |tweet|
puts tweet.text
end
A tweet
object is produced from the stream;
(rdb:1) tweet.class
Twitter::Tweet
I can run tweet.methods
to get the list of methods available but that includes methods not specific to the tweet api. It includes methods from Object etc. Since I would like to extract from this object all the tweet specific information to see it, is there a way to run all the methods from Class: Twitter::Tweet, from the list of 'Instance Method Summary' and 'Instance Attribute Summary' automatically without having to call each one individually? (I want to make a JSON of all the data in these tweet objects)
and can you explain what this means in terms of the oop paradigm in ruby- "Twitter::Tweet"? does it mean that the tweet object is part of the Twitter api and Tweet class?