Module: Sendbird::Client

Included in:
ApplicationApi, GroupChannelApi, MessageApi, MetaBase, OpenChannelApi, UserApi
Defined in:
lib/sendbird/client.rb

Defined Under Namespace

Classes: ApiKeyMissingError, HttpBasicMissing, NotValidApplication

Constant Summary collapse

PUBLIC_METHODS =
[:get, :post, :put, :delete]

Instance Method Summary collapse

Instance Method Details

#build_url(*args) ⇒ Object



28
29
30
31
32
33
34
35
# File 'lib/sendbird/client.rb', line 28

def build_url(*args)
  if args.any?
    new_args = args.dup
    new_args.insert(0, self.const_get('ENDPOINT')).join('/')
  else
    self.const_get('ENDPOINT')
  end
end