Rename to_hash method

This commit is contained in:
alexbostock 2018-07-17 11:12:04 +01:00
parent 3fd1e914fd
commit 49bae9b619
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ module Hbc
end
end
def to_hash
def to_h
{
"name" => name,
"homepage" => homepage,

View File

@ -12,7 +12,7 @@ module Hbc
def run
if json == "v1"
puts JSON.generate(casks.map(&:to_hash))
puts JSON.generate(casks.map(&:to_h))
else
casks.each do |cask|
odebug "Getting info for Cask #{cask}"