Class: Wuclan::Twitter::Model::SearchTweet

Inherits:
Object
  • Object
show all
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

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



68
69
70
# File 'lib/wuclan/twitter/model/tweet.rb', line 68

def decoded_text
  @decoded_text ||= text.wukong_decode
end

#from_sidObject



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

def from_sid()  twitter_user_sid         end

#from_userObject



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

def from_user() twitter_user_screen_name end

#num_key_fieldsObject

Key on id



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

def num_key_fields()  1 end

#numeric_id_fieldsObject



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_sidObject



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

def to_sid()    in_reply_to_sid          end