Class: Tweetkit::Response::Tweets::Tweet::Annotations::Entity::Mentions

Inherits:
Object
  • Object
show all
Defined in:
lib/tweetkit/response.rb

Defined Under Namespace

Classes: Mention

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mentions) ⇒ Mentions

Returns a new instance of Mentions.



316
317
318
319
320
# File 'lib/tweetkit/response.rb', line 316

def initialize(mentions)
  return unless mentions

  @mentions = mentions.collect { |mention| Mention.new(mention) }
end

Instance Attribute Details

#mentionsObject

Returns the value of attribute mentions.



314
315
316
# File 'lib/tweetkit/response.rb', line 314

def mentions
  @mentions
end