Class: Palm::RawRecord

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

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

Attributes inherited from Record

#archive, #category, #deleted, #dirty, #expunged, #private, #record_id

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



5
6
7
# File 'lib/palm/raw_record.rb', line 5

def data
  @data
end