Class: HostConnect::GetServicesBuilder
- Inherits:
-
AbstractBuilder
- Object
- AbstractBuilder
- HostConnect::GetServicesBuilder
- 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
-
#initialize(options = {}) ⇒ GetServicesBuilder
constructor
A new instance of GetServicesBuilder.
- #to_xml ⇒ Object
Methods inherited from AbstractBuilder
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( = {}) @valid_options = [ :agent_id, :password ].freeze super() end |
Instance Method Details
#to_xml ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/hostconnect/builders/get_services_builder.rb', line 10 def to_xml x = x.Request { x.GetServicesRequest { x.AgentID @agent_id; x.Password @password } } x end |