2013-08-04 20:53:25 +00:00
|
|
|
class AsciicastCreator
|
|
|
|
|
2014-02-10 16:39:37 +00:00
|
|
|
def create(attributes)
|
2014-02-12 19:22:20 +00:00
|
|
|
asciicast = Asciicast.create!(attributes)
|
2013-09-25 17:29:57 +00:00
|
|
|
AsciicastWorker.perform_async(asciicast.id)
|
2013-08-04 20:53:25 +00:00
|
|
|
|
2013-09-25 17:29:57 +00:00
|
|
|
asciicast
|
2013-08-04 20:53:25 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|