Class: Tweetkit::Response::Tweets::Tweet::Metrics::Public
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Tweet::Metrics::Public
- Defined in:
- lib/tweetkit/response.rb
Instance Attribute Summary collapse
-
#like_count ⇒ Object
Returns the value of attribute like_count.
-
#quote_count ⇒ Object
Returns the value of attribute quote_count.
-
#reply_count ⇒ Object
Returns the value of attribute reply_count.
-
#retweet_count ⇒ Object
Returns the value of attribute retweet_count.
Instance Method Summary collapse
-
#initialize(public_metric) ⇒ Public
constructor
A new instance of Public.
- #likes ⇒ Object
- #quotes ⇒ Object
- #replies ⇒ Object
- #retweets ⇒ Object
Constructor Details
#initialize(public_metric) ⇒ Public
Returns a new instance of Public.
402 403 404 405 406 407 |
# File 'lib/tweetkit/response.rb', line 402 def initialize(public_metric) @like_count = public_metric['like_count'] @quote_count = public_metric['quote_count'] @reply_count = public_metric['reply_count'] @retweet_count = public_metric['retweet_count'] end |
Instance Attribute Details
#like_count ⇒ Object
Returns the value of attribute like_count.
400 401 402 |
# File 'lib/tweetkit/response.rb', line 400 def like_count @like_count end |
#quote_count ⇒ Object
Returns the value of attribute quote_count.
400 401 402 |
# File 'lib/tweetkit/response.rb', line 400 def quote_count @quote_count end |
#reply_count ⇒ Object
Returns the value of attribute reply_count.
400 401 402 |
# File 'lib/tweetkit/response.rb', line 400 def reply_count @reply_count end |
#retweet_count ⇒ Object
Returns the value of attribute retweet_count.
400 401 402 |
# File 'lib/tweetkit/response.rb', line 400 def retweet_count @retweet_count end |
Instance Method Details
#likes ⇒ Object
409 410 411 |
# File 'lib/tweetkit/response.rb', line 409 def likes @like_count end |
#quotes ⇒ Object
413 414 415 |
# File 'lib/tweetkit/response.rb', line 413 def quotes @quote_count end |
#replies ⇒ Object
417 418 419 |
# File 'lib/tweetkit/response.rb', line 417 def replies @reply_count end |
#retweets ⇒ Object
421 422 423 |
# File 'lib/tweetkit/response.rb', line 421 def retweets @retweet_count end |