@return [Boolean]
# File lib/twitter/entities.rb, line 13 def entities? !@attrs[:entities].nil? && @attrs[:entities].any? { |_, array| array.any? } end
@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
@return [Boolean]
# File lib/twitter/entities.rb, line 40 def media? media.any? end
@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
@return [Boolean]
# File lib/twitter/entities.rb, line 53 def symbols? symbols.any? end
@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
@return [Boolean]
# File lib/twitter/entities.rb, line 67 def uris? uris.any? end
Generated with the Darkfish Rdoc Generator 2.