# File lib/heroku/api/mock.rb, line 74 def self.get_mock_addon(mock_data, addon) @addons ||= begin data = File.read("#{File.dirname(__FILE__)}/mock/cache/get_addons.json") MultiJson.load(data) end @addons.detect {|addon_data| addon_data['name'] == addon} end