Class: Hiya::Analytics::Popular

Inherits:
Base
  • Object
show all
Defined in:
lib/hiya/analytics/popular.rb

Instance Attribute Summary

Attributes inherited from Base

#api_url, #bearer_token, #response, #source

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Hiya::Base

Instance Method Details

#allObject



6
7
8
9
10
11
# File 'lib/hiya/analytics/popular.rb', line 6

def all
  @response = conn.get('/v1/analytics/popular')
  Oj.load(response.body, symbol_keys: true)
rescue StandardError => _e
  {}
end