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
#in_reply_to_status_id, included, #status_id
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.
164 165 166 167 |
# File 'lib/wuclan/twitter/model/relationship.rb', line 164 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.
177 178 179 |
# File 'lib/wuclan/twitter/model/relationship.rb', line 177 def is_retweet? ! user_b_name.blank? end |
#num_key_fields ⇒ Object
Key on retweeting_user-user-tweet_id
170 |
# File 'lib/wuclan/twitter/model/relationship.rb', line 170 def num_key_fields() 3 end |
#numeric_id_fields ⇒ Object
171 |
# File 'lib/wuclan/twitter/model/relationship.rb', line 171 def numeric_id_fields() [:user_a_id, :user_b_id, :tweet_id] ; end |