Parent

Included Modules

Class/Module Index [+]

Quicksearch

Twitter::Action::Mention

Attributes

max_position[R]
min_position[R]

Public Instance Methods

source() click to toggle source

The user who mentioned a user

@return [Twitter::User]

# File lib/twitter/action/mention.rb, line 24
def source
  @source = sources.first
end
sources() click to toggle source

A collection of users who mentioned a user

@return [Array<Twitter::User>]

# File lib/twitter/action/mention.rb, line 15
def sources
  @sources = Array(@attrs[:sources]).map do |user|
    Twitter::User.fetch_or_new(user)
  end
end
target_objects() click to toggle source

A collection of tweets that mention a user

@return [Array<Twitter::Tweet>]

# File lib/twitter/action/mention.rb, line 31
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 mentioned user

@return [Array<Twitter::User>]

# File lib/twitter/action/mention.rb, line 40
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.