Module: Croudia::API::Trends

Included in:
Client
Defined in:
lib/croudia/api/trends.rb

Instance Method Summary collapse

Instance Method Details

Retrieve the current trends

Parameters:

  • params (Hash) (defaults to: {})

    Query parameters

Options Hash (params):

  • :id (String, Integer) — default: "1"

    Location ID

Returns:

See Also:



13
14
15
16
17
# File 'lib/croudia/api/trends.rb', line 13

def trends(params={})
  params[:id] ||= '1'
  resp = get('/trends/place.json', params)
  Croudia::TrendResults.new(resp)
end