Class: XMLRPC::Client
- Inherits:
-
Object
- Object
- XMLRPC::Client
- Defined in:
- lib/softlayer/Service.rb
Overview
The XMLRPC client uses a fixed user agent string, but we want to supply our own, so we add a method to XMLRPC::Client that lets us change it.
Class Method Summary collapse
Class Method Details
.set_user_agent(new_agent) ⇒ Object
46 47 48 49 |
# File 'lib/softlayer/Service.rb', line 46 def self.set_user_agent(new_agent) remove_const(:USER_AGENT) if const_defined?(:USER_AGENT) const_set(:USER_AGENT, new_agent) end |