Method: PinganApi::Base#send_request_with_data_and_template
- Defined in:
- lib/pingan_api/base.rb
#send_request_with_data_and_template(data, template_path) ⇒ Object
6 7 8 9 10 |
# File 'lib/pingan_api/base.rb', line 6 def send_request_with_data_and_template(data, template_path) erb = ERB.new(File.read(template_path)) body = erb.result(data.get_binding) return send_request(body) end |