Module: Symbiont::SoapObject::SoapMethods

Defined in:
lib/symbiont/soap_methods.rb

Instance Method Summary collapse

Instance Method Details

#basic_auth(*creds) ⇒ Object



17
18
19
20
21
# File 'lib/symbiont/soap_methods.rb', line 17

def basic_auth(*creds)
  define_method(:has_basic_auth) do
    { basic_auth: creds }
  end
end

#digest_auth(*creds) ⇒ Object



23
24
25
26
27
# File 'lib/symbiont/soap_methods.rb', line 23

def digest_auth(*creds)
  define_method(:has_digest_auth) do
    { digest_auth: creds }
  end
end

#encoding(enc) ⇒ Object



35
36
37
38
39
# File 'lib/symbiont/soap_methods.rb', line 35

def encoding(enc)
  define_method(:has_encoding) do
    { encoding: enc }
  end
end

#log_level(level) ⇒ Object



53
54
55
56
57
# File 'lib/symbiont/soap_methods.rb', line 53

def log_level(level)
  define_method(:has_log_level) do
    { log: true, log_level: level, pretty_print_xml: true }
  end
end

#open_timeout(timeout) ⇒ Object



41
42
43
44
45
# File 'lib/symbiont/soap_methods.rb', line 41

def open_timeout(timeout)
  define_method(:has_open_timeout) do
    { open_timeout: timeout }
  end
end

#proxy(url) ⇒ Object



11
12
13
14
15
# File 'lib/symbiont/soap_methods.rb', line 11

def proxy(url)
  define_method(:has_proxy) do
    { proxy: url }
  end
end

#read_timeout(timeout) ⇒ Object



47
48
49
50
51
# File 'lib/symbiont/soap_methods.rb', line 47

def read_timeout(timeout)
  define_method(:has_read_timeout) do
    { read_timeout: timeout }
  end
end

#soap_header(header) ⇒ Object



29
30
31
32
33
# File 'lib/symbiont/soap_methods.rb', line 29

def soap_header(header)
  define_method(:has_soap_header) do
    { soap_header: header }
  end
end

#ssl_verification(enable) ⇒ Object



65
66
67
68
69
70
# File 'lib/symbiont/soap_methods.rb', line 65

def ssl_verification(enable)
  return unless enable
  define_method(:has_ssl_verification) do
    { ssl_verify_mode: true }
  end
end

#ssl_version(version) ⇒ Object



59
60
61
62
63
# File 'lib/symbiont/soap_methods.rb', line 59

def ssl_version(version)
  define_method(:has_ssl_version) do
    { ssl_version: version }
  end
end

#wsdl(url) ⇒ Object



4
5
6
7
8
9
# File 'lib/symbiont/soap_methods.rb', line 4

def wsdl(url)
  define_method(:has_wsdl) do
    @wsdl ||= url
    { wsdl: @wsdl }
  end
end