Class: PlataformaSocial::Ranking::General

Inherits:
PlataformaSocial::Ranking show all
Defined in:
lib/plataforma_social/ranking/general.rb

Instance Method Summary collapse

Methods inherited from PlataformaSocial::Ranking

#create, #destroy, #destroy_all, #friends, socialp_route, #window

Constructor Details

#initializeGeneral

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 options = {}
  get_request "/users/ranking", { :limit => options[:limit], :page => options[:page] }
rescue => e
  return e.to_s
end