You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/services/asciicast_creator.rb

12 lines
272 B
Ruby

class AsciicastCreator
def create(attributes, headers = {})
attributes = AsciicastParams.new(attributes, headers).to_h
asciicast = Asciicast.create!(attributes, without_protection: true)
AsciicastWorker.perform_async(asciicast.id)
asciicast
end
end