Class: Wuclan::Twitter::Model::Tweet

Inherits:
Object
  • Object
show all
Includes:
ModelCommon
Defined in:
lib/wuclan/twitter/model/tweet.rb

Overview

Tweet

Text and metadata for a twitter status update

Instance Method Summary collapse

Methods included from ModelCommon

#days_since_created, flatten_date, #key, #scrape_age, unbooleanize, zeropad_id

Instance Method Details

#decoded_textObject

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_fieldsObject

Key on id



30
# File 'lib/wuclan/twitter/model/tweet.rb', line 30

def num_key_fields()  1 end

#numeric_id_fieldsObject



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