Class/Module Index [+]

Quicksearch

Twitter::Action::Retweet

Public Instance Methods

target_objects() click to toggle source

A collection of retweets

@return [Array<Twitter::Tweet>]

# File lib/twitter/action/retweet.rb, line 10
def target_objects
  @target_objects = Array(@attrs[:target_objects]).map do |tweet|
    Twitter::Tweet.fetch_or_new(tweet)
  end
end
targets() click to toggle source

A collection containing the retweeted user

@return [Array<Twitter::User>]

# File lib/twitter/action/retweet.rb, line 19
def targets
  @targets = Array(@attrs[:targets]).map do |user|
    Twitter::User.fetch_or_new(user)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.