File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ def unlink_user_rich_menu(user_id)
369
369
# @param rich_menu_id [String] ID of the uploaded rich menu
370
370
#
371
371
# @return [Net::HTTPResponse]
372
- def bulk_link_user_rich_menus ( user_ids , rich_menu_id )
372
+ def bulk_link_rich_menus ( user_ids , rich_menu_id )
373
373
request = Request . new do |config |
374
374
config . httpclient = httpclient
375
375
config . endpoint = endpoint
@@ -389,7 +389,7 @@ def bulk_link_user_rich_menus(user_ids, rich_menu_id)
389
389
# @param user_ids [Array] ID of the user
390
390
#
391
391
# @return [Net::HTTPResponse]
392
- def bulk_unlink_user_rich_menus ( user_ids )
392
+ def bulk_unlink_rich_menus ( user_ids )
393
393
request = Request . new do |config |
394
394
config . httpclient = httpclient
395
395
config . endpoint = endpoint
Original file line number Diff line number Diff line change 140
140
uri_template = Addressable ::Template . new Line ::Bot ::API ::DEFAULT_ENDPOINT + '/bot/richmenu/bulk/link'
141
141
stub_request ( :post , uri_template ) . to_return ( body : '{}' , status : 200 )
142
142
143
- client . bulk_link_user_rich_menus ( [ '1' , '2' ] , '7654321' )
143
+ client . bulk_link_rich_menus ( [ '1' , '2' ] , '7654321' )
144
144
expect ( WebMock ) . to have_requested ( :post , Line ::Bot ::API ::DEFAULT_ENDPOINT + '/bot/richmenu/bulk/link' )
145
145
end
146
146
147
147
it 'unlink a rich menus from multiple users at a time' do
148
148
uri_template = Addressable ::Template . new Line ::Bot ::API ::DEFAULT_ENDPOINT + '/bot/richmenu/bulk/unlink'
149
149
stub_request ( :post , uri_template ) . to_return ( body : '{}' , status : 200 )
150
150
151
- client . bulk_unlink_user_rich_menus ( [ '1' , '2' ] )
151
+ client . bulk_unlink_rich_menus ( [ '1' , '2' ] )
152
152
expect ( WebMock ) . to have_requested ( :post , Line ::Bot ::API ::DEFAULT_ENDPOINT + '/bot/richmenu/bulk/unlink' )
153
153
end
154
154
You can’t perform that action at this time.
0 commit comments