Class: RunApi::Suno::Resources::BoostStyle
- Inherits:
-
Object
- Object
- RunApi::Suno::Resources::BoostStyle
- Includes:
- Core::ResourceHelpers
- Defined in:
- lib/runapi/suno/resources/boost_style.rb
Overview
Generates style/genre tags from a text description for use in style fields. Synchronous (run only).
Constant Summary collapse
- ENDPOINT =
"/api/v1/suno/boost_style"- RESPONSE_CLASS =
Types::BoostStyleResponse
Instance Method Summary collapse
-
#initialize(http) ⇒ BoostStyle
constructor
A new instance of BoostStyle.
- #run(**params) ⇒ Object
Constructor Details
#initialize(http) ⇒ BoostStyle
Returns a new instance of BoostStyle.
13 14 15 |
# File 'lib/runapi/suno/resources/boost_style.rb', line 13 def initialize(http) @http = http end |
Instance Method Details
#run(**params) ⇒ Object
17 18 19 20 21 |
# File 'lib/runapi/suno/resources/boost_style.rb', line 17 def run(**params) params = compact_params(params) validate_params!(params) request(:post, ENDPOINT, body: params) end |