Class: MaxApiClient::RawApi
- Defined in:
- lib/max_api_client/raw_api.rb,
sig/max_api_client.rbs
Overview
Low-level grouped access to Max Bot API endpoint families.
Constant Summary
Constants inherited from BaseApi
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #bots ⇒ BotsApi
- #chats ⇒ ChatsApi
- #delete ⇒ Object
- #get ⇒ Object
-
#initialize ⇒ RawApi
constructor
A new instance of RawApi.
- #messages ⇒ MessagesApi
- #patch ⇒ Object
- #post ⇒ Object
- #put ⇒ Object
- #subscriptions ⇒ SubscriptionsApi
- #uploads ⇒ UploadsApi
Constructor Details
#initialize ⇒ RawApi
Returns a new instance of RawApi.
30 |
# File 'sig/max_api_client.rbs', line 30
def initialize: (Client) -> void
|
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/max_api_client/raw_api.rb', line 6 def client @client end |
Instance Method Details
#bots ⇒ BotsApi
8 9 10 |
# File 'lib/max_api_client/raw_api.rb', line 8 def bots @bots ||= build_api(BotsApi) end |
#chats ⇒ ChatsApi
12 13 14 |
# File 'lib/max_api_client/raw_api.rb', line 12 def chats @chats ||= build_api(ChatsApi) end |
#delete ⇒ Object
35 |
# File 'sig/max_api_client.rbs', line 35
def delete: (String, ?query: untyped, ?body: untyped, ?path_params: untyped) -> untyped
|
#get ⇒ Object
31 |
# File 'sig/max_api_client.rbs', line 31
def get: (String, ?query: untyped, ?path_params: untyped) -> untyped
|
#messages ⇒ MessagesApi
16 17 18 |
# File 'lib/max_api_client/raw_api.rb', line 16 def @messages ||= build_api(MessagesApi) end |
#patch ⇒ Object
34 |
# File 'sig/max_api_client.rbs', line 34
def patch: (String, ?query: untyped, ?body: untyped, ?path_params: untyped) -> untyped
|
#post ⇒ Object
32 |
# File 'sig/max_api_client.rbs', line 32
def post: (String, ?query: untyped, ?body: untyped, ?path_params: untyped) -> untyped
|
#put ⇒ Object
33 |
# File 'sig/max_api_client.rbs', line 33
def put: (String, ?query: untyped, ?body: untyped, ?path_params: untyped) -> untyped
|
#subscriptions ⇒ SubscriptionsApi
20 21 22 |
# File 'lib/max_api_client/raw_api.rb', line 20 def subscriptions @subscriptions ||= build_api(SubscriptionsApi) end |
#uploads ⇒ UploadsApi
24 25 26 |
# File 'lib/max_api_client/raw_api.rb', line 24 def uploads @uploads ||= build_api(UploadsApi) end |