Class: PlataformaSocial::Ranking::General
- Inherits:
-
PlataformaSocial::Ranking
- Object
- PlataformaSocial::Ranking
- PlataformaSocial::Ranking::General
- Defined in:
- lib/plataforma_social/ranking/general.rb
Instance Method Summary collapse
-
#get(options = {}) ⇒ Object
Método para retornar o ranking completo do app Esse método aceita como parâmetro: options = { :limit => NUMERO_MAXIMO_DE_REGISTROS_A_SEREM_RETORNADOS, :page => PAGINA_A_SER_RETORNADA_NA_PAGINACAO }.
-
#initialize ⇒ General
constructor
A new instance of General.
Methods inherited from PlataformaSocial::Ranking
#create, #destroy, #destroy_all, #friends, socialp_route, #window
Constructor Details
#initialize ⇒ General
Returns a new instance of General.
4 5 6 |
# File 'lib/plataforma_social/ranking/general.rb', line 4 def initialize end |
Instance Method Details
#get(options = {}) ⇒ Object
Método para retornar o ranking completo do app Esse método aceita como parâmetro: options =
:limit => NUMERO_MAXIMO_DE_REGISTROS_A_SEREM_RETORNADOS,
:page => PAGINA_A_SER_RETORNADA_NA_PAGINACAO
15 16 17 18 19 |
# File 'lib/plataforma_social/ranking/general.rb', line 15 def get = {} get_request "/users/ranking", { :limit => [:limit], :page => [:page] } rescue => e return e.to_s end |