Class: KHL::HTTP::ChannelRole
Overview
频道角色权限相关接口 developer.kaiheila.cn/doc/http/channel
Constant Summary
Constants inherited from Base
Base::API_VERSION, Base::BASE_URL, Base::END_POINT
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#create(channel_id, options = {}) ⇒ KHL::HTTP::Response
创建频道角色权限.
-
#delete(channel_id, options = {}) ⇒ KHL::HTTP::Response
删除频道角色权限.
-
#index(channel_id) ⇒ KHL::HTTP::Response
频道角色权限详情.
-
#update(channel_id, options = {}) ⇒ KHL::HTTP::Response
更新频道角色权限.
Methods inherited from Base
#get, #initialize, #post, #post_file
Constructor Details
This class inherits a constructor from KHL::HTTP::Base
Instance Method Details
#create(channel_id, options = {}) ⇒ KHL::HTTP::Response
创建频道角色权限
23 24 25 |
# File 'lib/khl/http/channel_role.rb', line 23 def create(channel_id, = {}) post(.merge(channel_id: channel_id)) end |
#delete(channel_id, options = {}) ⇒ KHL::HTTP::Response
删除频道角色权限
45 46 47 |
# File 'lib/khl/http/channel_role.rb', line 45 def delete(channel_id, = {}) post(.merge(channel_id: channel_id)) end |
#index(channel_id) ⇒ KHL::HTTP::Response
频道角色权限详情
13 14 15 |
# File 'lib/khl/http/channel_role.rb', line 13 def index(channel_id) get(channel_id: channel_id) end |
#update(channel_id, options = {}) ⇒ KHL::HTTP::Response
更新频道角色权限
35 36 37 |
# File 'lib/khl/http/channel_role.rb', line 35 def update(channel_id, = {}) post(.merge(channel_id: channel_id)) end |