Class: Twitter::Action::Reply
- Defined in:
- lib/hackeroo/action/reply.rb
Instance Attribute Summary
Attributes inherited from Tweet
Instance Method Summary collapse
-
#target_objects ⇒ Array<Twitter::Tweet>
A collection of tweets that reply to a user.
-
#targets ⇒ Array<Twitter::Tweet>
A collection that contains the replied-to tweets.
Methods inherited from Tweet
Instance Method Details
#target_objects ⇒ Array<Twitter::Tweet>
A collection of tweets that reply to a user
10 11 12 13 14 |
# File 'lib/hackeroo/action/reply.rb', line 10 def target_objects @target_objects = Array(@attrs[:target_objects]).map do |tweet| Twitter::Tweet.fetch_or_new(tweet) end end |
#targets ⇒ Array<Twitter::Tweet>
A collection that contains the replied-to tweets
19 20 21 22 23 |
# File 'lib/hackeroo/action/reply.rb', line 19 def targets @targets = Array(@attrs[:targets]).map do |tweet| Twitter::Tweet.fetch_or_new(tweet) end end |