Module: Yammer::Client::Suggestions

Included in:
Yammer::Client
Defined in:
lib/yammer/client/suggestions.rb

Overview

Defines methods to get/declines suggestions.

Instance Method Summary collapse

Instance Method Details

#decline_suggestion(id) ⇒ Object

Decline a suggestion specfic id. Yammer.decline_suggestion(12345)

Parameters:

  • id (Integer/String)

    When declining a suggestion, pass its id.



24
25
26
# File 'lib/yammer/client/suggestions.rb', line 24

def decline_suggestion(id)
  delete("suggestions/#{id}")
end

#suggestions(options = {}) ⇒ Hashie::Mash

Return suggested groups and users.

Yammer.suggestions

Parameters:

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

    A customizable set of options.

Options Hash (options):

  • :limit (Integer)

    Returns only Return only the specified number of suggestions.

Returns:

  • (Hashie::Mash)

See Also:

Supported formats:

  • :json

Requires Authentication:

  • true

Rate Limited:



16
17
18
# File 'lib/yammer/client/suggestions.rb', line 16

def suggestions(options={})
  get('suggestions', options)
end