Class: Chem::CDX::Uint8

Inherits:
Object
  • Object
show all
Defined in:
lib/chem/db/cdx.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(num) ⇒ Uint8

Returns a new instance of Uint8.



994
995
996
# File 'lib/chem/db/cdx.rb', line 994

def initialize num
  @num = num
end

Instance Attribute Details

#numObject (readonly)

Returns the value of attribute num.



993
994
995
# File 'lib/chem/db/cdx.rb', line 993

def num
  @num
end

Instance Method Details

#to_xmlObject



997
998
999
# File 'lib/chem/db/cdx.rb', line 997

def to_xml
  return @num.to_s
end