Class: Palm::RawRecord
Overview
Stores the contents of the record in the data attribute as a byte string.
This is suitable for any record where the actual content of the record is irrelevant.
Constant Summary
Constants inherited from Record
Palm::Record::RECORD_ATTRIBUTE_CODES
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Attributes inherited from Record
#archive, #category, #deleted, #dirty, #expunged, #private, #record_id
Instance Method Summary collapse
-
#initialize(bytes = nil) ⇒ RawRecord
constructor
A new instance of RawRecord.
Methods inherited from Record
#packed_attributes, #packed_attributes=
Constructor Details
#initialize(bytes = nil) ⇒ RawRecord
Returns a new instance of RawRecord.
6 7 8 9 |
# File 'lib/palm/raw_record.rb', line 6 def initialize(bytes=nil) super() @data = bytes end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/palm/raw_record.rb', line 5 def data @data end |