This method is only available on newer versions. The first available version (v2_6_3) is shown here.
to_h()
A hash representation of the build metadata.
# File lib/bundler/build_metadata.rb, line 13 def self.to_h { "Built At" => built_at, "Git SHA" => git_commit_sha, "Released Version" => release?, } end