Class: Palm::Resource
- Inherits:
-
Object
- Object
- Palm::Resource
- 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
Instance Attribute Summary collapse
-
#record_id ⇒ Object
Returns the value of attribute record_id.
-
#record_type ⇒ Object
Returns the value of attribute record_type.
Instance Method Summary collapse
Instance Attribute Details
#record_id ⇒ Object
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_type ⇒ Object
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
#intialize ⇒ Object
55 56 57 58 |
# File 'lib/palm/palm_record.rb', line 55 def intialize @record_type = "\0\0\0\0" @record_id = 0 end |