class GpWebpay::Ws::Echo
Attributes
config[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
GpWebpay::Service::new
# File lib/gp_webpay/ws/echo.rb, line 18 def initialize super @config = GpWebpay.config.default end
Public Instance Methods
call()
click to toggle source
# File lib/gp_webpay/ws/echo.rb, line 23 def call res = client.call(:echo) res.body && res.body[:echo_response].present? rescue Savon::HTTPError, Savon::SOAPFault false end
client()
click to toggle source
# File lib/gp_webpay/ws/echo.rb, line 30 def client @client ||= Savon.client(wsdl: config.wsdl_file, endpoint: config.ws_url, pretty_print_xml: true) end