# Twitter gem - include\_entities option

**URL:** <https://www.ruby-forum.com/t/twitter-gem-include-entities-option/193512>\
**Category:** Ruby\
**Created:** [August 19, 2010, 12:03am UTC](https://www.ruby-forum.com/t/twitter-gem-include-entities-option/193512 "2010-08-19T00:03:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eddie\_Catflap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f475e1/32.png) [@Eddie\_Catflap](https://www.ruby-forum.com/u/Eddie_Catflap)\
**Post date:** [August 19, 2010, 12:03am UTC](https://www.ruby-forum.com/t/twitter-gem-include-entities-option/193512/1 "2010-08-19T00:03:52Z")

</div>

Hi

The twitter api now has an option ‘include\_entities’ which when included  
in  
a call to a timeline returns a lot of interesting metadata about a  
tweet,  
such as users, lists, URLs, and hashtags mentioned in it.

The api returns these in a nice structured way and I’ve been considering  
how  
to use it. The only problem I have is that I can’t get the twitter gem  
(version 0.9.8) to send the option to the public\_timeline method  
(‘firehose’).

From the Twitter api docs:

[http://api.twitter.com/1/statuses/public\_timeline.json?include\_entities=true](http://api.twitter.com/1/statuses/public_timeline.json?include_entities=true)

From the twitter gem (lib/twitter.rb)

def self.firehose(options = {})  
perform\_get(“/statuses/public\_timeline.json”)  
end

From the twitter gem (lib/twitter.rb) I’d notmally call this via  
something  
like “client = Twitter.firehose” - but how do I get the  
“?include\_entities=true” portion of the call attached to it?

I assume adding the option somehow should do it, but can’t see where in  
the  
gem it amends the call - can anyone help? Could it be the gem doesn’t  
support this option yet (should I send a patch in or something?)

Regards

Eddie\_Catflap
