Class: RunApi::Suno::Resources::GetTimestampedLyrics
- Inherits:
-
Object
- Object
- RunApi::Suno::Resources::GetTimestampedLyrics
- Includes:
- Core::ResourceHelpers
- Defined in:
- lib/runapi/suno/resources/get_timestamped_lyrics.rb
Constant Summary collapse
- ENDPOINT =
"/api/v1/suno/get_timestamped_lyrics"- RESPONSE_CLASS =
Types::GetTimestampedLyricsResponse
Instance Method Summary collapse
-
#initialize(http) ⇒ GetTimestampedLyrics
constructor
A new instance of GetTimestampedLyrics.
- #run(**params) ⇒ Object
Constructor Details
#initialize(http) ⇒ GetTimestampedLyrics
Returns a new instance of GetTimestampedLyrics.
12 13 14 |
# File 'lib/runapi/suno/resources/get_timestamped_lyrics.rb', line 12 def initialize(http) @http = http end |
Instance Method Details
#run(**params) ⇒ Object
16 17 18 19 20 |
# File 'lib/runapi/suno/resources/get_timestamped_lyrics.rb', line 16 def run(**params) params = compact_params(params) validate_params!(params) request(:post, ENDPOINT, body: params) end |