Class: FuncBot::Bots::Client
- Inherits:
-
Object
- Object
- FuncBot::Bots::Client
- Defined in:
- lib/func_bot/bots/client.rb
Instance Attribute Summary collapse
-
#bot ⇒ Object
Returns the value of attribute bot.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(bot) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(bot) ⇒ Client
Returns a new instance of Client.
8 9 10 |
# File 'lib/func_bot/bots/client.rb', line 8 def initialize(bot) @bot = bot end |
Instance Attribute Details
#bot ⇒ Object
Returns the value of attribute bot.
6 7 8 |
# File 'lib/func_bot/bots/client.rb', line 6 def bot @bot end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 |
# File 'lib/func_bot/bots/client.rb', line 12 def call open_ai.chat( parameters: chat_params ) end |