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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mention) ⇒ Mention

Returns a new instance of Mention.



325
326
327
328
329
330
# File 'lib/tweetkit/response.rb', line 325

def initialize(mention)
  @end = mention['end']
  @id = mention['id']
  @start = mention['start']
  @username = mention['username']
end

Instance Attribute Details

#endObject

Returns the value of attribute end.



323
324
325
# File 'lib/tweetkit/response.rb', line 323

def end
  @end
end

#idObject

Returns the value of attribute id.



323
324
325
# File 'lib/tweetkit/response.rb', line 323

def id
  @id
end

#startObject

Returns the value of attribute start.



323
324
325
# File 'lib/tweetkit/response.rb', line 323

def start
  @start
end

#usernameObject

Returns the value of attribute username.



323
324
325
# File 'lib/tweetkit/response.rb', line 323

def username
  @username
end