You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
359 B

  1. # frozen_string_literal: true
  2. class Ostatus::Activity::General < Ostatus::Activity::Base
  3. def specialize
  4. special_class&.new(@xml, @account)
  5. end
  6. private
  7. def special_class
  8. case verb
  9. when :post
  10. Ostatus::Activity::Post
  11. when :share
  12. Ostatus::Activity::Share
  13. when :delete
  14. Ostatus::Activity::Deletion
  15. end
  16. end
  17. end