Class: Database::Blob
- Inherits:
-
Object
- Object
- Database::Blob
- Defined in:
- lib/database/blob.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#oid ⇒ Object
Returns the value of attribute oid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ Blob
constructor
A new instance of Blob.
- #to_s ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(data) ⇒ Blob
Returns a new instance of Blob.
11 12 13 |
# File 'lib/database/blob.rb', line 11 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/database/blob.rb', line 5 def data @data end |
#oid ⇒ Object
Returns the value of attribute oid.
4 5 6 |
# File 'lib/database/blob.rb', line 4 def oid @oid end |
Class Method Details
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/database/blob.rb', line 19 def to_s @data end |
#type ⇒ Object
15 16 17 |
# File 'lib/database/blob.rb', line 15 def type "blob" end |