Class: RunApi::Suno::Resources::BoostStyle

Inherits:
Object
  • Object
show all
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

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