Class: FcEnrich::FakeClient

Inherits:
Object
  • Object
show all
Defined in:
lib/fc_enrich/fake_client.rb

Instance Method Summary collapse

Instance Method Details

#post(path, _payload_hash) ⇒ Object



3
4
5
6
# File 'lib/fc_enrich/fake_client.rb', line 3

def post(path, _payload_hash)
  data = File.read("#{__dir__}/fake_client/post#{path.tr("/", "_")}.json")
  MultiJson.load(data)
end