Class: Wuclan::Twitter::Model::Tweet
- Inherits:
-
Object
- Object
- Wuclan::Twitter::Model::Tweet
- Includes:
- ModelCommon
- Defined in:
- lib/wuclan/twitter/model/tweet.rb
Overview
Tweet
Text and metadata for a twitter status update
Instance Method Summary collapse
-
#decoded_text ⇒ Object
Memoized; if you change text you have to flush.
-
#num_key_fields ⇒ Object
Key on id.
- #numeric_id_fields ⇒ 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
25 26 27 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 25 def decoded_text @decoded_text ||= text.wukong_decode end |
#num_key_fields ⇒ Object
Key on id
30 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 30 def num_key_fields() 1 end |
#numeric_id_fields ⇒ Object
31 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 31 def numeric_id_fields() [:id, :twitter_user_id, :in_reply_to_status_id, :in_reply_to_user_id] ; end |