Class: Palm::RawResource

Inherits:
Resource show all
Defined in:
lib/palm/raw_record.rb

Overview

Stores the contents of the resource in the data attribute as a byte string.

This is suitable for any resource where the actual content of the resource is irrelevant.

Instance Attribute Summary collapse

Attributes inherited from Resource

#record_id, #record_type

Instance Method Summary collapse

Methods inherited from Resource

#intialize

Constructor Details

#initialize(bytes = nil) ⇒ RawResource

Returns a new instance of RawResource.



16
17
18
19
# File 'lib/palm/raw_record.rb', line 16

def initialize(bytes=nil)
	super()
	@data = bytes
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



15
16
17
# File 'lib/palm/raw_record.rb', line 15

def data
  @data
end