Class: PreOp::PreRisk

Inherits:
Struct
  • Object
show all
Defined in:
lib/aqi/pre_op.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



13
14
15
# File 'lib/aqi/pre_op.rb', line 13

def category
  @category
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



13
14
15
# File 'lib/aqi/pre_op.rb', line 13

def name
  @name
end

#notesObject

Returns the value of attribute notes

Returns:

  • (Object)

    the current value of notes



13
14
15
# File 'lib/aqi/pre_op.rb', line 13

def notes
  @notes
end

Instance Method Details

#to_xmlObject



14
15
16
17
18
19
20
21
# File 'lib/aqi/pre_op.rb', line 14

def to_xml
  builder = Builder::XmlMarkup.new
  builder.PreRisk do |prs|
   prs.PreOPRiskCategory(category)
   prs.PreOPRiskName(name)
   prs.PreOPRiskNotes(notes)
  end
end