class Dependabot::GitRef
def ==(other)
def ==(other) case other when GitRef to_h == other.to_h else false end end
def initialize(name:, commit_sha:, tag_sha: nil, ref_sha: nil, ref_type: nil)
def initialize(name:, commit_sha:, tag_sha: nil, ref_sha: nil, ref_type: nil) @name = name @commit_sha = commit_sha @ref_sha = ref_sha @tag_sha = tag_sha @ref_type = ref_type end
def to_h
def to_h { name: name, commit_sha: commit_sha, tag_sha: tag_sha, ref_sha: ref_sha, ref_type: ref_type }.compact end