Module: ChatWork::Member
- Defined in:
- lib/chatwork/member.rb
Class Method Summary collapse
-
.get(room_id:) {|response_body, response_header| ... } ⇒ Array<Hashie::Mash>
Get the list of all chat members associated with the specified chat.
-
.update_all(room_id:, members_admin_ids:, members_member_ids: nil, members_readonly_ids: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Change associated members of group chat at once.
Class Method Details
.get(room_id:) {|response_body, response_header| ... } ⇒ Array<Hashie::Mash>
Get the list of all chat members associated with the specified chat
29 30 31 |
# File 'lib/chatwork/member.rb', line 29 def self.get(room_id:, &block) ChatWork.client.get_members(room_id: room_id, &block) end |
.update_all(room_id:, members_admin_ids:, members_member_ids: nil, members_readonly_ids: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Change associated members of group chat at once
56 57 58 59 60 61 62 63 64 |
# File 'lib/chatwork/member.rb', line 56 def self.update_all(room_id:, members_admin_ids:, members_member_ids: nil, members_readonly_ids: nil, &block) ChatWork.client.update_all_members( room_id: room_id, members_admin_ids: members_admin_ids, members_member_ids: members_member_ids, members_readonly_ids: members_readonly_ids, &block ) end |