class Dependabot::GitTagWithDetail

def ==(other)

def ==(other)
  case other
  when GitTagWithDetail
    to_h == other.to_h
  else
    false
  end
end

def initialize(tag:, release_date: nil)

def initialize(tag:, release_date: nil)
  @tag = tag
  @release_date = release_date
end

def to_h

def to_h
  {
    tag: tag,
    release_date: release_date
  }.compact
end