Class: Wuclan::Twitter::Model::ARetweetsBId

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

Instance Method Summary collapse

Methods included from RelationshipBase

included

Methods included from ModelCommon

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

Constructor Details

#initialize(*args) ⇒ ARetweetsBId

Returns a new instance of ARetweetsBId.



156
157
158
159
# File 'lib/wuclan/twitter/model/relationship.rb', line 156

def initialize *args
  super *args
  self.please_flag = ModelCommon.unbooleanize(self.please_flag)
end

Instance Method Details

#is_retweet?Boolean

If there’s no user we’ll assume this is a retweet and not an rtwhore.

Returns:

  • (Boolean)


169
170
171
# File 'lib/wuclan/twitter/model/relationship.rb', line 169

def is_retweet?
  ! user_b_name.blank?
end

#num_key_fieldsObject

Key on retweeting_user-user-tweet_id



162
# File 'lib/wuclan/twitter/model/relationship.rb', line 162

def num_key_fields()  3  end

#numeric_id_fieldsObject



163
# File 'lib/wuclan/twitter/model/relationship.rb', line 163

def numeric_id_fields()     [:user_a_id, :user_b_id, :status_id] ; end