Class: Eet::Sender

Inherits:
Object
  • Object
show all
Defined in:
lib/eet/sender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/eet/sender.rb', line 5

def message
  @message
end

Instance Method Details

#call(xml) ⇒ Object



7
8
9
10
11
# File 'lib/eet/sender.rb', line 7

def call(xml)
  client = Savon.client(wsdl: 'https://pg.eet.cz:443/eet/services/EETServiceSOAP/v3?wsdl', open_timeout: 2)
  response = client.call(:odeslani_trzby, xml: xml)
  response
end