Class: Palm::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/palm/palm_record.rb

Overview

Base class for all Palm::PDB Resources. This stores the basic metadata for each record. Subclasses should extend this provide a useful interface for accessing specific record types.

Direct Known Subclasses

RawResource

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#record_idObject

Returns the value of attribute record_id.



54
55
56
# File 'lib/palm/palm_record.rb', line 54

def record_id
  @record_id
end

#record_typeObject

Returns the value of attribute record_type.



54
55
56
# File 'lib/palm/palm_record.rb', line 54

def record_type
  @record_type
end

Instance Method Details

#intializeObject



55
56
57
58
# File 'lib/palm/palm_record.rb', line 55

def intialize
	@record_type = "\0\0\0\0"
	@record_id = 0
end