Class: Palm::RawResource
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
-
#data ⇒ Object
Returns the value of attribute data.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(bytes = nil) ⇒ RawResource
constructor
A new instance of RawResource.
Methods inherited from Resource
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
#data ⇒ Object
Returns the value of attribute data.
15 16 17 |
# File 'lib/palm/raw_record.rb', line 15 def data @data end |