Class: MockChargebee::Repositories::RepoHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/mock_chargebee/repositories.rb

Instance Method Summary collapse

Instance Method Details

#fetchObject



20
21
22
23
24
# File 'lib/mock_chargebee/repositories.rb', line 20

def fetch(*)
  super
rescue KeyError => e
  raise ChargeBee::InvalidRequestError.new(404, message: "#{e.key} not found")
end