You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: furaffinity.rb
    path of file: ./repos/danbooru/app/logical/source/url
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Source::URL::Furaffinity < Source::URL
  attr_reader :wor
    
  def parse
    case [host, *path_segments]

    # https://www.furaffinity.net/view/46821705/
    # https://www.furaffinity.net/view/46802202/ (scrap)
    # https://www.furaffinity.net/full/46821705/
    in _, ("view" | "full"), /^\d+$/ => work_id
      @work_id = work_id

    # https://d.furaffinity.net/art/iwbitu/1650222955/1650222955.iwbitu_yubi.jpg
    # https://t.furaffinity.net/46821705@800-1650222955.jpg
    # https://a.furaffinity.net/1550854991/iwbitu.gif
    in _, "art", username, subdir, filename
      @username = username
      @filename = filename

    # https://www.furaffinity.net/gallery/iwbitu
    # https://www.furaffinity.net/scraps/iwbitu/2/?
    # https://www.furaffinity.net/gallery/iwbitu/folder/133763/Regular-commissions
    # https://www.furaffinity.net/user/lottieloveart/user?user_id=1021820442510802945
    # https://www.furaffinity.net/stats/duskmoor/submissions/
    in _, ("gallery" | "user" | "favorites" | "scraps" | "journals" | "stats"), username, *pages
      @username = username

    else
      nil
    end