Module: Laximo::Options
Instance Method Summary collapse
- #am_soap_action(str = nil) ⇒ Object
- #am_soap_endpoint(str = nil) ⇒ Object
- #debug(str = nil) ⇒ Object
- #debug? ⇒ Boolean
- #locale(str = nil) ⇒ Object
- #login(str = nil) ⇒ Object
- #oem_soap_action(str = nil) ⇒ Object
- #oem_soap_endpoint(str = nil) ⇒ Object
- #password(str = nil) ⇒ Object
- #raise_on_empty_response(str = nil) ⇒ Object
- #raise_on_empty_response? ⇒ Boolean
- #timeout(str = nil) ⇒ Object
- #user_agent(str = nil) ⇒ Object
Instance Method Details
#am_soap_action(str = nil) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/laximo/options.rb', line 44 def am_soap_action(str = nil) return @am_soap_action if str.nil? @am_soap_action = str end |
#am_soap_endpoint(str = nil) ⇒ Object
51 52 53 54 55 56 |
# File 'lib/laximo/options.rb', line 51 def am_soap_endpoint(str = nil) return @am_soap_endpoint if str.nil? @am_soap_endpoint = str end |
#debug(str = nil) ⇒ Object
36 37 38 |
# File 'lib/laximo/options.rb', line 36 def debug(str = nil) @debug = (str === true) end |
#debug? ⇒ Boolean
40 41 42 |
# File 'lib/laximo/options.rb', line 40 def debug? @debug === true end |
#locale(str = nil) ⇒ Object
72 73 74 75 76 77 |
# File 'lib/laximo/options.rb', line 72 def locale(str = nil) return @locale if str.nil? @locale = str end |
#login(str = nil) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/laximo/options.rb', line 8 def login(str = nil) return @login if str.nil? @login = str end |
#oem_soap_action(str = nil) ⇒ Object
58 59 60 61 62 63 |
# File 'lib/laximo/options.rb', line 58 def oem_soap_action(str = nil) return @oem_soap_action if str.nil? @oem_soap_action = str end |
#oem_soap_endpoint(str = nil) ⇒ Object
65 66 67 68 69 70 |
# File 'lib/laximo/options.rb', line 65 def oem_soap_endpoint(str = nil) return @oem_soap_endpoint if str.nil? @oem_soap_endpoint = str end |
#password(str = nil) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/laximo/options.rb', line 15 def password(str = nil) return @password if str.nil? @password = str end |
#raise_on_empty_response(str = nil) ⇒ Object
79 80 81 |
# File 'lib/laximo/options.rb', line 79 def raise_on_empty_response(str = nil) @raise_on_empty_response = (str === true) end |
#raise_on_empty_response? ⇒ Boolean
83 84 85 |
# File 'lib/laximo/options.rb', line 83 def raise_on_empty_response? @raise_on_empty_response === true end |
#timeout(str = nil) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/laximo/options.rb', line 22 def timeout(str = nil) return @timeout if str.nil? @timeout = String(str).to_i(10).abs end |
#user_agent(str = nil) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/laximo/options.rb', line 29 def user_agent(str = nil) return @user_agent if str.nil? @user_agent = str end |