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: bluesky.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::Bluesky < Source::URL
  attr_reader :user_did, :user_handle, :post_id

  def self.match?(url)
    url.domain.in?(%w[bsk
    
  def parse
    case [subdomain, domain, *path_segments]

    # https://bsky.app/profile/ixy.bsky.social
    # https://bsky.app/profile/did:plc:3jogsxcisdcdzwjobhxbav2w
    in _, _, "profile", user_id
      if user_id.starts_with?("did:")
        @user_did = user_id
      else
        @user_handle = user_id
      end

    # https://bsky.app/profile/ixy.bsky.social/post/3kkvo4d4jd32g
    # https://bsky.app/profile/did:plc:3jogsxcisdcdzwjobhxbav2w/post/3kkvo4d4jd32g
    in _, _, "profile", user_id, "post", post_id
      if user_id.starts_with?("did:")
        @user_did = user_id
      else
        @user_handle = user_id
      end