Included Modules

Class/Module Index [+]

Quicksearch

Twitter::Entities

Public Instance Methods

entities?() click to toggle source

@return [Boolean]

# File lib/twitter/entities.rb, line 13
def entities?
  !@attrs[:entities].nil? && @attrs[:entities].any? { |_, array| array.any? }
end
hashtags() click to toggle source

@note Must include entities in your request for this method to work @return [Array<Twitter::Entity::Hashtag>]

# File lib/twitter/entities.rb, line 20
def hashtags
  entities(Entity::Hashtag, :hashtags)
end
hashtags?() click to toggle source

@return [Boolean]

# File lib/twitter/entities.rb, line 26
def hashtags?
  hashtags.any?
end
media() click to toggle source

@note Must include entities in your request for this method to work @return [Array<Twitter::Media>]

# File lib/twitter/entities.rb, line 33
def media
  extended_entities = entities(MediaFactory, :media, :extended_entities)
  extended_entities.empty? ? entities(MediaFactory, :media) : extended_entities
end
media?() click to toggle source

@return [Boolean]

# File lib/twitter/entities.rb, line 40
def media?
  media.any?
end
symbols() click to toggle source

@note Must include entities in your request for this method to work @return [Array<Twitter::Entity::Symbol>]

# File lib/twitter/entities.rb, line 47
def symbols
  entities(Entity::Symbol, :symbols)
end
symbols?() click to toggle source

@return [Boolean]

# File lib/twitter/entities.rb, line 53
def symbols?
  symbols.any?
end
uris() click to toggle source

@note Must include entities in your request for this method to work @return [Array<Twitter::Entity::URI>]

# File lib/twitter/entities.rb, line 60
def uris
  entities(Entity::URI, :urls)
end
Also aliased as: urls
uris?() click to toggle source

@return [Boolean]

# File lib/twitter/entities.rb, line 67
def uris?
  uris.any?
end
Also aliased as: urls?
urls() click to toggle source
Alias for: uris
urls?() click to toggle source
Alias for: uris?
user_mentions() click to toggle source

@note Must include entities in your request for this method to work @return [Array<Twitter::Entity::UserMention>]

# File lib/twitter/entities.rb, line 74
def user_mentions
  entities(Entity::UserMention, :user_mentions)
end
user_mentions?() click to toggle source

@return [Boolean]

# File lib/twitter/entities.rb, line 80
def user_mentions?
  user_mentions.any?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.