Class: HostConnect::ServiceLineNoteBuilder
- Inherits:
-
AbstractBuilder
- Object
- AbstractBuilder
- HostConnect::ServiceLineNoteBuilder
- Defined in:
- lib/hostconnect/builders/service_line_note_builder.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ServiceLineNoteBuilder
constructor
A new instance of ServiceLineNoteBuilder.
- #to_xml ⇒ Object
Methods inherited from AbstractBuilder
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( = {}) @valid_options = [ :note_category, :note_text ].freeze super() end |
Instance Method Details
#to_xml ⇒ Object
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 |