Skip to content

Commit 0ed7691

Browse files
committed
NO-ISSUE upd2
1 parent e1ea99c commit 0ed7691

File tree

15 files changed

+43
-43
lines changed

15 files changed

+43
-43
lines changed

.rubocop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ AllCops:
1212
- 'lib/line/bot/v2/module_attach/**/*'
1313
- 'lib/line/bot/v2/shop/**/*'
1414
- 'lib/line/bot/v2/webhook/**/*'
15-
- 'lib/line/bot/v2/client.generated.rb'
16-
- 'lib/line/bot/v2/client.factory.generated.rb'
15+
- 'lib/line/bot/v2/line_bot_client.generated.rb'
16+
- 'lib/line/bot/v2/line_bot_client.factory.generated.rb'
1717
NewCops: disable
1818

1919
Gemspec/RequiredRubyVersion:

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You can code with type support in the corresponding IDE or editor.
5454

5555
### Basic Usage
5656

57-
The unified `Line::Bot::V2::Client` wraps all individual API clients into a single object.
57+
The unified `Line::Bot::V2::LineBotClient` wraps all individual API clients into a single object.
5858
You no longer need to create separate clients for MessagingApi, Insight, Liff, etc.
5959

6060
```ruby
@@ -65,7 +65,7 @@ require 'line-bot-api'
6565
set :environment, :production
6666

6767
def client
68-
@client ||= Line::Bot::V2::Client.new(
68+
@client ||= Line::Bot::V2::LineBotClient.new(
6969
channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN")
7070
)
7171
end
@@ -135,11 +135,11 @@ You may use this classes to use LINE Messaging API features.
135135

136136
#### Unified Client (recommended)
137137

138-
`Line::Bot::V2::Client` wraps all API clients below (except ChannelAccessToken and ModuleAttach) into one object.
138+
`Line::Bot::V2::LineBotClient` wraps all API clients below (except ChannelAccessToken and ModuleAttach) into one object.
139139
You only need a single `channel_access_token` to call any API.
140140

141141
```ruby
142-
client = Line::Bot::V2::Client.new(
142+
client = Line::Bot::V2::LineBotClient.new(
143143
channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN")
144144
)
145145

@@ -194,7 +194,7 @@ require 'json'
194194
require 'line-bot-api'
195195

196196
def client
197-
@client ||= Line::Bot::V2::Client.new(
197+
@client ||= Line::Bot::V2::LineBotClient.new(
198198
channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN"),
199199
)
200200
end
@@ -240,7 +240,7 @@ This is useful, for example, in migrating from v1 or building Flex Message.
240240
**But this is not recommended because you lose type checking by RBS.**
241241

242242
```ruby
243-
client = Line::Bot::V2::Client.new(
243+
client = Line::Bot::V2::LineBotClient.new(
244244
channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN"),
245245
)
246246

examples/v2/audience/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'line-bot-api'
22

33
def client
4-
@client ||= Line::Bot::V2::Client.new(
4+
@client ||= Line::Bot::V2::LineBotClient.new(
55
channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN"),
66
)
77
end

examples/v2/echobot/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set :app_base_url, ENV.fetch('APP_BASE_URL')
66

77
def client
8-
@client ||= Line::Bot::V2::Client.new(
8+
@client ||= Line::Bot::V2::LineBotClient.new(
99
channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN")
1010
)
1111
end

examples/v2/kitchensink/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
QUICK_REPLY_ICON_URL = 'https://via.placeholder.com/64x64'
1111

1212
def client
13-
@client ||= Line::Bot::V2::Client.new(
13+
@client ||= Line::Bot::V2::LineBotClient.new(
1414
channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN"),
1515
http_options: {
1616
open_timeout: 5,

examples/v2/rich_menu/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'line-bot-api'
22

33
def client
4-
@client ||= Line::Bot::V2::Client.new(
4+
@client ||= Line::Bot::V2::LineBotClient.new(
55
channel_access_token: ENV.fetch("LINE_CHANNEL_ACCESS_TOKEN"),
66
)
77
end

lib/line/bot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
require 'line/bot/v2/module_attach/core'
2626
require 'line/bot/v2/shop/core'
2727
require 'line/bot/v2/webhook/core'
28-
require 'line/bot/v2/client'
28+
require 'line/bot/v2/line_bot_client'

lib/line/bot/v2/client.factory.generated.rb renamed to lib/line/bot/v2/line_bot_client.factory.generated.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
module Line
77
module Bot
88
module V2
9-
class Client
9+
class LineBotClient
1010
private
1111

1212
def build_generated_delegates(

lib/line/bot/v2/client.generated.rb renamed to lib/line/bot/v2/line_bot_client.generated.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
module Line
77
module Bot
88
module V2
9-
class Client
9+
class LineBotClient
1010
# Retrieves the demographic attributes for a LINE Official Account's friends.You can only retrieve information about friends for LINE Official Accounts created by users in Japan (JP), Thailand (TH), Taiwan (TW) and Indonesia (ID).
1111
# This requests to <code>GET https://api.line.me/v2/bot/insight/demographic</code>
1212
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# This file is intended for manual edits.
22
#
3-
# Generated delegation methods live in ./client.generated.rb.
4-
# Generated factory helpers live in ./client.factory.generated.rb.
3+
# Generated delegation methods live in ./line_bot_client.generated.rb.
4+
# Generated factory helpers live in ./line_bot_client.factory.generated.rb.
55

66
require 'line/bot/v2/insight/core'
77
require 'line/bot/v2/liff/core'
88
require 'line/bot/v2/manage_audience/core'
99
require 'line/bot/v2/messaging_api/core'
1010
require 'line/bot/v2/module/core'
1111
require 'line/bot/v2/shop/core'
12-
require 'line/bot/v2/client.generated'
13-
require 'line/bot/v2/client.factory.generated'
12+
require 'line/bot/v2/line_bot_client.generated'
13+
require 'line/bot/v2/line_bot_client.factory.generated'
1414

1515
module Line
1616
module Bot
@@ -22,7 +22,7 @@ module V2
2222
#
2323
# For channel access token operations, use {Line::Bot::V2::ChannelAccessToken::ApiClient} directly.
2424
# For module attach operations, use {Line::Bot::V2::ModuleAttach::ApiClient} directly.
25-
class Client
25+
class LineBotClient
2626
# @param channel_access_token [String] Channel access token issued for your LINE Official Account.
2727
# @param api_base_url [String, nil] Base URL for Messaging API style endpoints. Defaults to https://api.line.me.
2828
# @param data_api_base_url [String, nil] Base URL for data/blob endpoints. Defaults to https://api-data.line.me.

0 commit comments

Comments
 (0)