Class: Wuclan::Twitter::Model::ARetweetsBId
- Inherits:
-
Object
- Object
- Wuclan::Twitter::Model::ARetweetsBId
- Includes:
- ModelCommon, RelationshipBase
- Defined in:
- lib/wuclan/twitter/model/relationship.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ ARetweetsBId
constructor
A new instance of ARetweetsBId.
-
#is_retweet? ⇒ Boolean
If there’s no user we’ll assume this is a retweet and not an rtwhore.
-
#num_key_fields ⇒ Object
Key on retweeting_user-user-tweet_id.
- #numeric_id_fields ⇒ Object
Methods included from RelationshipBase
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.
169 170 171 |
# File 'lib/wuclan/twitter/model/relationship.rb', line 169 def is_retweet? ! user_b_name.blank? end |
#num_key_fields ⇒ Object
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_fields ⇒ Object
163 |
# File 'lib/wuclan/twitter/model/relationship.rb', line 163 def numeric_id_fields() [:user_a_id, :user_b_id, :status_id] ; end |