Class: HostConnect::AgentInfoBuilder
- Inherits:
-
AbstractBuilder
- Object
- AbstractBuilder
- HostConnect::AgentInfoBuilder
- Defined in:
- lib/hostconnect/builders/agent_info_builder.rb
Overview
The AgentInfo request returns information about the specified agent (and as with other requests that require AgentID and Password an error is reported if the AgentID / Password combination is invalid).
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AgentInfoBuilder
constructor
A new instance of AgentInfoBuilder.
- #to_xml ⇒ Object
Methods inherited from AbstractBuilder
Constructor Details
#initialize(options = {}) ⇒ AgentInfoBuilder
Returns a new instance of AgentInfoBuilder.
6 7 8 9 |
# File 'lib/hostconnect/builders/agent_info_builder.rb', line 6 def initialize( = {}) @valid_options = [ :agent_id, :password ].freeze super() end |
Instance Method Details
#to_xml ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/hostconnect/builders/agent_info_builder.rb', line 11 def to_xml x = x.Request { x.AgentInfoRequest { x.AgentID @agent_id; x.Password @password } } x end |