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

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

Defined Under Namespace

Classes: Public

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**metrics) ⇒ Metrics

Returns a new instance of Metrics.



393
394
395
396
397
# File 'lib/tweetkit/response.rb', line 393

def initialize(**metrics)
  return unless metrics

  @public_metrics = Public.new(metrics[:public_metrics])
end

Instance Attribute Details

#public_metricsObject

Returns the value of attribute public_metrics.



391
392
393
# File 'lib/tweetkit/response.rb', line 391

def public_metrics
  @public_metrics
end