Class: Afipws::Client
- Inherits:
-
Object
- Object
- Afipws::Client
- Defined in:
- lib/afipws/client.rb
Instance Method Summary collapse
-
#initialize(savon_options) ⇒ Client
constructor
A new instance of Client.
- #operations ⇒ Object
- #request(action, body = nil) ⇒ Object
Constructor Details
#initialize(savon_options) ⇒ Client
Returns a new instance of Client.
3 4 5 |
# File 'lib/afipws/client.rb', line 3 def initialize @client = Savon.client .reverse_merge(soap_version: 2, ssl_version: :TLSv1) end |
Instance Method Details
#operations ⇒ Object
11 12 13 |
# File 'lib/afipws/client.rb', line 11 def operations @client.operations end |
#request(action, body = nil) ⇒ Object
7 8 9 |
# File 'lib/afipws/client.rb', line 7 def request action, body = nil @client.call action, message: body end |