Class: HostConnect::AgentInfoBuilder

Inherits:
AbstractBuilder show all
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

Methods inherited from AbstractBuilder

#submit, #to_s

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(options = {})
  @valid_options = [ :agent_id, :password ].freeze
  super(options)
end

Instance Method Details

#to_xmlObject



11
12
13
14
15
16
17
# File 'lib/hostconnect/builders/agent_info_builder.rb', line 11

def to_xml
  x = bare
  x.Request {
    x.AgentInfoRequest { x.AgentID @agent_id; x.Password @password }
  }
  x
end