Module: ChatWork::InvitationLink
- Defined in:
- lib/chatwork/invitation_link.rb
Class Method Summary collapse
-
.create(room_id:, code: nil, description: nil, need_acceptance: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Create invitation link.
-
.destroy(room_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Delete invitation link.
-
.get(room_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Get invitation link.
-
.update(room_id:, code: nil, description: nil, need_acceptance: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Update invitation link.
Class Method Details
.create(room_id:, code: nil, description: nil, need_acceptance: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Create invitation link
50 51 52 |
# File 'lib/chatwork/invitation_link.rb', line 50 def self.create(room_id:, code: nil, description: nil, need_acceptance: nil, &block) ChatWork.client.create_invitation_link(room_id: room_id, code: code, description: description, need_acceptance: need_acceptance, &block) end |
.destroy(room_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Delete invitation link
98 99 100 |
# File 'lib/chatwork/invitation_link.rb', line 98 def self.destroy(room_id:, &block) ChatWork.client.destroy_invitation_link(room_id: room_id, &block) end |
.get(room_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Get invitation link
23 24 25 |
# File 'lib/chatwork/invitation_link.rb', line 23 def self.get(room_id:, &block) ChatWork.client.get_invitation_link(room_id: room_id, &block) end |
.update(room_id:, code: nil, description: nil, need_acceptance: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Update invitation link
77 78 79 |
# File 'lib/chatwork/invitation_link.rb', line 77 def self.update(room_id:, code: nil, description: nil, need_acceptance: nil, &block) ChatWork.client.update_invitation_link(room_id: room_id, code: code, description: description, need_acceptance: need_acceptance, &block) end |