Class: HostConnect::ServiceLineNoteBuilder

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

Instance Method Summary collapse

Methods inherited from AbstractBuilder

#submit, #to_s

Constructor Details

#initialize(options = {}) ⇒ ServiceLineNoteBuilder

Returns a new instance of ServiceLineNoteBuilder.



3
4
5
6
# File 'lib/hostconnect/builders/service_line_note_builder.rb', line 3

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

Instance Method Details

#to_xmlObject



8
9
10
11
12
13
14
15
# File 'lib/hostconnect/builders/service_line_note_builder.rb', line 8

def to_xml
  x = Builder::XmlMarkup.new(:indent => 2, :margin => 3)
  x.ServiceLineNote {
    x.NoteCategory @note_category
    x.NoteText @note_text
  }
  x
end