title: Private method error using object.entities in Twitter API
body: <p>I am getting the following error when trying to call tweet.entities in my twitter feed controller.</p>
  
  <p>private method `entities' called for #Twitter::Status:0x94d4bf4</p>
  
  <p>I have no methods called entities in the code, I even did a full file search to check.</p>
  
  <p>I either need to rename the entities part of the object or somehow find where this so called private method is or circumnavigate it somehow.  My method within my twitter_feeds controller is as follows:</p>
  
  <pre><code>  def hometimeline
  @user = User.find(current_user.id)
  
  tweets = @user.tweeting.user_timeline(count: '10', include_entities: true)
  
  
  parsed_tweets = []
  i = 0
  
  tweets.each do |tweet| 
  
    more = Hash.new
    more['test'] = tweet
    internal_hash = Hash.new
    mappings = {"source" =&gt; "fixed"}
  
    another = more['test']
  
    boo = Array(tweet)
  
  
    #newhash = Hash[twee.map {|k, v| [mapping[k], v] }]
    #newhash = Hash[more.map {|k, v| [mappings[k], v] }]
    #newhash = Hash[tweet.map {|k, v| [mappings[k] || k, v] }]
  
    internal_hash['parsed_text'] = tweet.entities
  
    internal_hash['id'] = tweet.id
    internal_hash['raw_text'] = tweet.text
  
    internal_hash['name'] = tweet.user.name
    internal_hash['screen_name'] = tweet.user.screen_name
    internal_hash['user_id'] = tweet.user.id
    internal_hash['user_image_url'] = tweet.user.profile_image_url
    parsed_tweets &lt;&lt; internal_hash
    i = i + 1
  end
  
  respond_to do |format|
    format.json { render json: parsed_tweets }
  end
  </code></pre>
  
  <p>end</p>
  
  <p>Essentially I am sending a set of parsed tweets to the client and want to achieve link wrapping etc. on the server.</p>
  
  <p>Is there any way I can find where the code thinks this method is or is there a way to make it not private or ignore it so I can call tweet.entities.</p>
  
  <p>EDIT: One extra point to note is that I did have an entity model and entities controller but have deleted them and still get this.</p>
  
  <p>Thanks</p>