Class: Chem::CDX::CDXObjectID
- Inherits:
-
Object
- Object
- Chem::CDX::CDXObjectID
- Defined in:
- lib/chem/db/cdx.rb
Instance Method Summary collapse
-
#initialize(object_id) ⇒ CDXObjectID
constructor
A new instance of CDXObjectID.
- #to_bin ⇒ Object
- #to_xml ⇒ Object
Constructor Details
#initialize(object_id) ⇒ CDXObjectID
Returns a new instance of CDXObjectID.
815 816 817 |
# File 'lib/chem/db/cdx.rb', line 815 def initialize object_id @object_id = object_id end |
Instance Method Details
#to_bin ⇒ Object
823 824 825 |
# File 'lib/chem/db/cdx.rb', line 823 def to_bin [@object_id].pack('L') end |
#to_xml ⇒ Object
819 820 821 |
# File 'lib/chem/db/cdx.rb', line 819 def to_xml @object_id end |