Class: MockChargebee::Repositories::RepoHash

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

Instance Method Summary collapse

Instance Method Details

#fetchObject



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

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