Class: HostConnect::GetServicesBuilder

Inherits:
AbstractBuilder show all
Defined in:
lib/hostconnect/builders/get_services_builder.rb

Overview

The GetServices request returns a list of all service codes and names used in the system. Note that each Opt option identifier contains a service code.

Instance Method Summary collapse

Methods inherited from AbstractBuilder

#submit, #to_s

Constructor Details

#initialize(options = {}) ⇒ GetServicesBuilder

Returns a new instance of GetServicesBuilder.



5
6
7
8
# File 'lib/hostconnect/builders/get_services_builder.rb', line 5

def initialize(options = {})
  @valid_options = [ :agent_id, :password ].freeze
  super(options)
end

Instance Method Details

#to_xmlObject



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

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