class Sendbird::MetaBase
Public Class Methods
build_url(*args)
click to toggle source
# File lib/sendbird/meta_base.rb, line 38 def self.build_url(*args) args_dup = args.dup args_dup.join('/') end
create(channel_type, channel_url, body)
click to toggle source
# File lib/sendbird/meta_base.rb, line 5 def create(channel_type, channel_url, body) post(path: build_url(channel_type, channel_url, endpoint), body: body) end
destroy(channel_type, channel_url)
click to toggle source
# File lib/sendbird/meta_base.rb, line 25 def destroy(channel_type, channel_url) delete(path: build_url(channel_type, channel_url, endpoint)) end
destroy_by_key(channel_type, channel_url, key)
click to toggle source
# File lib/sendbird/meta_base.rb, line 29 def destroy_by_key(channel_type, channel_url, key) delete(path: build_url(channel_type, channel_url, endpoint, key)) end
endpoint()
click to toggle source
# File lib/sendbird/meta_base.rb, line 34 def self.endpoint self.const_get('ENDPOINT') end
update(channel_type, channel_url, body)
click to toggle source
# File lib/sendbird/meta_base.rb, line 17 def update(channel_type, channel_url, body) put(path: build_url(channel_type, channel_url, endpoint), body: body) end
update_by_key(channel_type, channel_url, key, body)
click to toggle source
# File lib/sendbird/meta_base.rb, line 21 def update_by_key(channel_type, channel_url, key, body) put(path: build_url(channel_type, channel_url, endpoint, key), body: body) end
view(channel_type, channel_url, params={})
click to toggle source
# File lib/sendbird/meta_base.rb, line 9 def view(channel_type, channel_url, params={}) get(path: build_url(channel_type, channel_url, endpoint), params: params) end
view_by_key(channel_type, channel_url, key)
click to toggle source
# File lib/sendbird/meta_base.rb, line 13 def view_by_key(channel_type, channel_url, key) get(path: build_url(channel_type, channel_url, endpoint, key)) end