Class: Tweetkit::Response::Tweets::Tweet::Annotations::Entity::Mentions::Mention
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Tweet::Annotations::Entity::Mentions::Mention
- Defined in:
- lib/tweetkit/response.rb
Instance Attribute Summary collapse
-
#end ⇒ Object
Returns the value of attribute end.
-
#id ⇒ Object
Returns the value of attribute id.
-
#start ⇒ Object
Returns the value of attribute start.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(mention) ⇒ Mention
constructor
A new instance of Mention.
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
#end ⇒ Object
Returns the value of attribute end.
323 324 325 |
# File 'lib/tweetkit/response.rb', line 323 def end @end end |
#id ⇒ Object
Returns the value of attribute id.
323 324 325 |
# File 'lib/tweetkit/response.rb', line 323 def id @id end |
#start ⇒ Object
Returns the value of attribute start.
323 324 325 |
# File 'lib/tweetkit/response.rb', line 323 def start @start end |
#username ⇒ Object
Returns the value of attribute username.
323 324 325 |
# File 'lib/tweetkit/response.rb', line 323 def username @username end |