Class: Tweetkit::Response::Tweets::Tweet::Metrics::Public

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countObject

Returns the value of attribute like_count.



400
401
402
# File 'lib/tweetkit/response.rb', line 400

def like_count
  @like_count
end

#quote_countObject

Returns the value of attribute quote_count.



400
401
402
# File 'lib/tweetkit/response.rb', line 400

def quote_count
  @quote_count
end

#reply_countObject

Returns the value of attribute reply_count.



400
401
402
# File 'lib/tweetkit/response.rb', line 400

def reply_count
  @reply_count
end

#retweet_countObject

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

#likesObject



409
410
411
# File 'lib/tweetkit/response.rb', line 409

def likes
  @like_count
end

#quotesObject



413
414
415
# File 'lib/tweetkit/response.rb', line 413

def quotes
  @quote_count
end

#repliesObject



417
418
419
# File 'lib/tweetkit/response.rb', line 417

def replies
  @reply_count
end

#retweetsObject



421
422
423
# File 'lib/tweetkit/response.rb', line 421

def retweets
  @retweet_count
end