Module: ChatWork::Client::InvitationLinkMethods
- Included in:
- ChatWork::Client
- Defined in:
- lib/chatwork/client/invitation_link_methods.rb
Instance Method Summary collapse
-
#create_invitation_link(room_id:, code: nil, description: nil, need_acceptance: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Create invitation link.
-
#destroy_invitation_link(room_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Delete invitation link.
-
#get_invitation_link(room_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Get invitation link.
-
#update_invitation_link(room_id:, code: nil, description: nil, need_acceptance: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Update invitation link.
Instance Method Details
#create_invitation_link(room_id:, code: nil, description: nil, need_acceptance: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Create invitation link
49 50 51 52 53 54 55 56 |
# File 'lib/chatwork/client/invitation_link_methods.rb', line 49 def create_invitation_link(room_id:, code: nil, description: nil, need_acceptance: nil, &block) params = { code: code, description: description, need_acceptance: boolean_to_integer(need_acceptance), } post("/rooms/#{room_id}/link", params, &block) end |
#destroy_invitation_link(room_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Delete invitation link
107 108 109 |
# File 'lib/chatwork/client/invitation_link_methods.rb', line 107 def destroy_invitation_link(room_id:, &block) delete("/rooms/#{room_id}/link", &block) end |
#get_invitation_link(room_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Get invitation link
22 23 24 |
# File 'lib/chatwork/client/invitation_link_methods.rb', line 22 def get_invitation_link(room_id:, &block) get("/rooms/#{room_id}/link", &block) end |
#update_invitation_link(room_id:, code: nil, description: nil, need_acceptance: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Update invitation link
81 82 83 84 85 86 87 88 |
# File 'lib/chatwork/client/invitation_link_methods.rb', line 81 def update_invitation_link(room_id:, code: nil, description: nil, need_acceptance: nil, &block) params = { code: code, description: description, need_acceptance: boolean_to_integer(need_acceptance), } put("/rooms/#{room_id}/link", params, &block) end |