Class: Userstream::Tweet

Inherits:
TwitterObject show all
Defined in:
lib/userstream/tweet.rb

Constant Summary collapse

ATTRS =
[:coordinates, :favorited, :created_at, :truncated, :contributors, :text, :id, :geo, :in_reply_to_user_id, :place, :source, :in_reply_to_screen_name, :in_reply_to_status_id, :user]

Constants inherited from TwitterObject

TwitterObject::SINGLE_TWEET_URL, TwitterObject::SINGLE_USER_URL

Instance Attribute Summary

Attributes inherited from TwitterObject

#base, #data

Instance Method Summary collapse

Methods inherited from TwitterObject

attrs, #from_json, #get_tweet_data, #get_user_data, #initialize, #load_all, #load_tweet_data, #load_user_data, tweet_writer, user_writer

Constructor Details

This class inherits a constructor from TwitterObject

Instance Method Details

#loaded?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/userstream/tweet.rb', line 13

def loaded?
  !text.nil?
end

#tweet_loadable_idObject



9
10
11
# File 'lib/userstream/tweet.rb', line 9

def tweet_loadable_id
  id
end