Class: Chem::CDX::CDXObjectID

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

Instance Method Summary collapse

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_binObject



823
824
825
# File 'lib/chem/db/cdx.rb', line 823

def to_bin
  [@object_id].pack('L')
end

#to_xmlObject



819
820
821
# File 'lib/chem/db/cdx.rb', line 819

def to_xml
  @object_id
end