Class: Wuclan::Twitter::Model::SearchTweet
- Inherits:
-
Object
- Object
- Wuclan::Twitter::Model::SearchTweet
- Includes:
- ModelCommon
- Defined in:
- lib/wuclan/twitter/model/tweet.rb
Overview
SearchTweet
Text and metadata for a twitter status update pulled from the search API
Instance Method Summary collapse
-
#decoded_text ⇒ Object
Memoized; if you change text you have to flush.
- #from_sid ⇒ Object
- #from_user ⇒ Object
-
#num_key_fields ⇒ Object
Key on id.
- #numeric_id_fields ⇒ Object
- #to_sid ⇒ Object
Methods included from ModelCommon
#days_since_created, flatten_date, #key, #scrape_age, unbooleanize, zeropad_id
Instance Method Details
#decoded_text ⇒ Object
Memoized; if you change text you have to flush
68 69 70 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 68 def decoded_text @decoded_text ||= text.wukong_decode end |
#from_sid ⇒ Object
72 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 72 def from_sid() twitter_user_sid end |
#from_user ⇒ Object
73 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 73 def from_user() twitter_user_screen_name end |
#num_key_fields ⇒ Object
Key on id
78 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 78 def num_key_fields() 1 end |
#numeric_id_fields ⇒ Object
79 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 79 def numeric_id_fields() [:id, :twitter_user_id, :in_reply_to_status_id, :in_reply_to_user_id] ; end |
#to_sid ⇒ Object
74 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 74 def to_sid() in_reply_to_sid end |