Skip to content

Commit c81b2a6

Browse files
committed
NO-ISSUE gen
1 parent 14b998d commit c81b2a6

10 files changed

Lines changed: 170 additions & 0 deletions

File tree

lib/line/bot/v2/channel_access_token/api/channel_access_token_client.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ module Bot
1818
module V2
1919
module ChannelAccessToken
2020
class ApiClient
21+
# Initializes a new {Line::Bot::V2::ChannelAccessToken::ApiClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://api.line.me' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
27+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
28+
#
29+
# @example
30+
# @client ||= Line::Bot::V2::ChannelAccessToken::ApiClient.new(
31+
# http_options: {
32+
# open_timeout: 5,
33+
# read_timeout: 5,
34+
# }
35+
# )
2136
def initialize(base_url: nil, http_options: {})
2237
@http_client = HttpClient.new(
2338
base_url: base_url || 'https://api.line.me',

lib/line/bot/v2/insight/api/insight_client.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ module Bot
1818
module V2
1919
module Insight
2020
class ApiClient
21+
# Initializes a new {Line::Bot::V2::Insight::ApiClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://api.line.me' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param channel_access_token [String] The channel access token for authorization.
27+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
28+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
29+
#
30+
# @example
31+
# @client ||= Line::Bot::V2::Insight::ApiClient.new(
32+
# channel_access_token: "YOUR_CHANNEL_ACCESS_TOKEN",
33+
# http_options: {
34+
# open_timeout: 5,
35+
# read_timeout: 5,
36+
# }
37+
# )
2138
def initialize(base_url: nil, channel_access_token:, http_options: {})
2239
@http_client = HttpClient.new(
2340
base_url: base_url || 'https://api.line.me',

lib/line/bot/v2/liff/api/liff_client.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ module Bot
1818
module V2
1919
module Liff
2020
class ApiClient
21+
# Initializes a new {Line::Bot::V2::Liff::ApiClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://api.line.me' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param channel_access_token [String] The channel access token for authorization.
27+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
28+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
29+
#
30+
# @example
31+
# @client ||= Line::Bot::V2::Liff::ApiClient.new(
32+
# channel_access_token: "YOUR_CHANNEL_ACCESS_TOKEN",
33+
# http_options: {
34+
# open_timeout: 5,
35+
# read_timeout: 5,
36+
# }
37+
# )
2138
def initialize(base_url: nil, channel_access_token:, http_options: {})
2239
@http_client = HttpClient.new(
2340
base_url: base_url || 'https://api.line.me',

lib/line/bot/v2/manage_audience/api/manage_audience_blob_client.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ module Bot
1818
module V2
1919
module ManageAudience
2020
class ApiBlobClient
21+
# Initializes a new {Line::Bot::V2::ManageAudience::ApiBlobClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://api-data.line.me' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param channel_access_token [String] The channel access token for authorization.
27+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
28+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
29+
#
30+
# @example
31+
# @client ||= Line::Bot::V2::ManageAudience::ApiBlobClient.new(
32+
# channel_access_token: "YOUR_CHANNEL_ACCESS_TOKEN",
33+
# http_options: {
34+
# open_timeout: 5,
35+
# read_timeout: 5,
36+
# }
37+
# )
2138
def initialize(base_url: nil, channel_access_token:, http_options: {})
2239
@http_client = HttpClient.new(
2340
base_url: base_url || 'https://api-data.line.me',

lib/line/bot/v2/manage_audience/api/manage_audience_client.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ module Bot
1818
module V2
1919
module ManageAudience
2020
class ApiClient
21+
# Initializes a new {Line::Bot::V2::ManageAudience::ApiClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://api.line.me' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param channel_access_token [String] The channel access token for authorization.
27+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
28+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
29+
#
30+
# @example
31+
# @client ||= Line::Bot::V2::ManageAudience::ApiClient.new(
32+
# channel_access_token: "YOUR_CHANNEL_ACCESS_TOKEN",
33+
# http_options: {
34+
# open_timeout: 5,
35+
# read_timeout: 5,
36+
# }
37+
# )
2138
def initialize(base_url: nil, channel_access_token:, http_options: {})
2239
@http_client = HttpClient.new(
2340
base_url: base_url || 'https://api.line.me',

lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ module Bot
1818
module V2
1919
module MessagingApi
2020
class ApiBlobClient
21+
# Initializes a new {Line::Bot::V2::MessagingApi::ApiBlobClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://api-data.line.me' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param channel_access_token [String] The channel access token for authorization.
27+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
28+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
29+
#
30+
# @example
31+
# @client ||= Line::Bot::V2::MessagingApi::ApiBlobClient.new(
32+
# channel_access_token: "YOUR_CHANNEL_ACCESS_TOKEN",
33+
# http_options: {
34+
# open_timeout: 5,
35+
# read_timeout: 5,
36+
# }
37+
# )
2138
def initialize(base_url: nil, channel_access_token:, http_options: {})
2239
@http_client = HttpClient.new(
2340
base_url: base_url || 'https://api-data.line.me',

lib/line/bot/v2/messaging_api/api/messaging_api_client.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ module Bot
1818
module V2
1919
module MessagingApi
2020
class ApiClient
21+
# Initializes a new {Line::Bot::V2::MessagingApi::ApiClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://api.line.me' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param channel_access_token [String] The channel access token for authorization.
27+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
28+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
29+
#
30+
# @example
31+
# @client ||= Line::Bot::V2::MessagingApi::ApiClient.new(
32+
# channel_access_token: "YOUR_CHANNEL_ACCESS_TOKEN",
33+
# http_options: {
34+
# open_timeout: 5,
35+
# read_timeout: 5,
36+
# }
37+
# )
2138
def initialize(base_url: nil, channel_access_token:, http_options: {})
2239
@http_client = HttpClient.new(
2340
base_url: base_url || 'https://api.line.me',

lib/line/bot/v2/module/api/line_module_client.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ module Bot
1818
module V2
1919
module Module
2020
class ApiClient
21+
# Initializes a new {Line::Bot::V2::Module::ApiClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://api.line.me' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param channel_access_token [String] The channel access token for authorization.
27+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
28+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
29+
#
30+
# @example
31+
# @client ||= Line::Bot::V2::Module::ApiClient.new(
32+
# channel_access_token: "YOUR_CHANNEL_ACCESS_TOKEN",
33+
# http_options: {
34+
# open_timeout: 5,
35+
# read_timeout: 5,
36+
# }
37+
# )
2138
def initialize(base_url: nil, channel_access_token:, http_options: {})
2239
@http_client = HttpClient.new(
2340
base_url: base_url || 'https://api.line.me',

lib/line/bot/v2/module_attach/api/line_module_attach_client.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,25 @@ module Bot
1818
module V2
1919
module ModuleAttach
2020
class ApiClient
21+
# Initializes a new {Line::Bot::V2::ModuleAttach::ApiClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://manager.line.biz' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param channel_id [String] The channel ID for Basic authentication.
27+
# @param channel_secret [String] The channel secret for Basic authentication.
28+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
29+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
30+
#
31+
# @example
32+
# @client ||= Line::Bot::V2::ModuleAttach::ApiClient.new(
33+
# channel_id: "YOUR_CHANNEL_ID",
34+
# channel_secret: "YOUR_CHANNEL_SECRET",
35+
# http_options: {
36+
# open_timeout: 5,
37+
# read_timeout: 5,
38+
# }
39+
# )
2140
def initialize(base_url: nil, channel_id:, channel_secret:, http_options: {})
2241
@http_client = HttpClient.new(
2342
base_url: base_url || 'https://manager.line.biz',

lib/line/bot/v2/shop/api/shop_client.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ module Bot
1818
module V2
1919
module Shop
2020
class ApiClient
21+
# Initializes a new {Line::Bot::V2::Shop::ApiClient} instance.
22+
#
23+
# @param base_url [String] The base URL for requests (optional).
24+
# Defaults to 'https://api.line.me' if none is provided.
25+
# You can override this for testing or to use a mock server.
26+
# @param channel_access_token [String] The channel access token for authorization.
27+
# @param http_options [Hash] HTTP options (same as Net::HTTP options).
28+
# See: https://docs.ruby-lang.org/en/3.4/Net/HTTP.html to understand the options.
29+
#
30+
# @example
31+
# @client ||= Line::Bot::V2::Shop::ApiClient.new(
32+
# channel_access_token: "YOUR_CHANNEL_ACCESS_TOKEN",
33+
# http_options: {
34+
# open_timeout: 5,
35+
# read_timeout: 5,
36+
# }
37+
# )
2138
def initialize(base_url: nil, channel_access_token:, http_options: {})
2239
@http_client = HttpClient.new(
2340
base_url: base_url || 'https://api.line.me',

0 commit comments

Comments
 (0)