Module: Yammer

Extended by:
Configuration
Defined in:
lib/yammer.rb,
lib/yammer/api.rb,
lib/yammer/error.rb,
lib/yammer/client.rb,
lib/yammer/request.rb,
lib/yammer/version.rb,
lib/yammer/connection.rb,
lib/yammer/client/feed.rb,
lib/yammer/client/users.rb,
lib/yammer/client/groups.rb,
lib/yammer/client/search.rb,
lib/yammer/configuration.rb,
lib/yammer/authentication.rb,
lib/yammer/client/messages.rb,
lib/yammer/client/suggestions.rb

Defined Under Namespace

Modules: Configuration, Request Classes: BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, ServiceUnavailable, Unauthorized

Constant Summary collapse

VERSION =

The version of the gem

'0.1.2'.freeze

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_CONSUMER_KEY, Configuration::DEFAULT_CONSUMER_SECRET, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_GATEWAY, Configuration::DEFAULT_OAUTH_TOKEN, Configuration::DEFAULT_OAUTH_TOKEN_SECRET, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to Yammer::Client



17
18
19
20
# File 'lib/yammer.rb', line 17

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ Yammer::Client

Alias for Yammer::Client.new

Returns:



12
13
14
# File 'lib/yammer.rb', line 12

def new(options={})
  Yammer::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/yammer.rb', line 22

def respond_to?(method, include_private = false)
  new.respond_to?(method, include_private) || super(method, include_private)
end