Class: PreOp::ICD

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rankObject

Returns the value of attribute rank

Returns:

  • (Object)

    the current value of rank



3
4
5
# File 'lib/aqi/pre_op.rb', line 3

def rank
  @rank
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



3
4
5
# File 'lib/aqi/pre_op.rb', line 3

def value
  @value
end

Instance Method Details

#to_xmlObject



4
5
6
7
8
9
10
# File 'lib/aqi/pre_op.rb', line 4

def to_xml
  builder = Builder::XmlMarkup.new
  builder.ICD do |icd|
    icd.ICDRank(rank)
    icd.ICDValue(value)
  end
end