Module: Breacan

Extended by:
Configurable
Defined in:
lib/breacan.rb,
lib/breacan/error.rb,
lib/breacan/client.rb,
lib/breacan/version.rb,
lib/breacan/client/im.rb,
lib/breacan/client/api.rb,
lib/breacan/client/rtm.rb,
lib/breacan/client/auth.rb,
lib/breacan/client/chat.rb,
lib/breacan/client/star.rb,
lib/breacan/client/emoji.rb,
lib/breacan/client/files.rb,
lib/breacan/client/oauth.rb,
lib/breacan/client/users.rb,
lib/breacan/configurable.rb,
lib/breacan/client/groups.rb,
lib/breacan/client/search.rb,
lib/breacan/authentication.rb,
lib/breacan/client/channels.rb,
lib/breacan/response/custom.rb,
lib/breacan/client/usergroups.rb

Defined Under Namespace

Modules: Authentication, Configurable, Response Classes: BadGateway, BadRequest, Client, ClientError, Conflict, Error, Forbidden, InternalServerError, MissingContentType, NotAcceptable, NotFound, NotImplemented, ServerError, ServiceUnavailable, TooManyLoginAttempts, TooManyRequests, Unauthorized, UnprocessableEntity, UnsupportedMediaType

Constant Summary collapse

VERSION =
'0.3.0'

Constants included from Configurable

Configurable::OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configurable

api_endpoint, configure, keys, options, reset!, web_endpoint

Class Method Details

.clientObject



8
9
10
11
12
13
# File 'lib/breacan.rb', line 8

def client
  unless defined?(@client) && @client.same_options?(options)
    @client = Breacan::Client.new(options)
  end
  @client
end