Module: BWAPI::Client::Projects::Data::Emoticons

Included in:
BWAPI::Client::Projects::Data
Defined in:
lib/bwapi/client/projects/data/emoticons.rb

Overview

Emoticons module for the /projects/project_id/data/emoticons endpoint

Instance Method Summary collapse

Instance Method Details

#data_emoticons(project_id, opts = {}) ⇒ array

Get top n emoticons

Parameters:

  • project_id (Integer)

    Id of project

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

    options hash of parameters

Options Hash (opts):

  • filter (Hash)

    The filters to apply

  • limit (Integer)

    The limit to return

  • orderBy (String)

    Parameter to sort by

  • orderDirection (String)

    Direction of sort

Returns:

  • (array)

    top n emoticons based on parameter passed



16
17
18
# File 'lib/bwapi/client/projects/data/emoticons.rb', line 16

def data_emoticons(project_id, opts = {})
  get "/projects/#{project_id}/data/emoticons", opts
end