Class: AppEngine::Datastore::Blob

Inherits:
String
  • Object
show all
Defined in:
lib/appengine-apis/datastore_types.rb

Overview

A blob type, appropriate for storing binary data of any length. Not indexed.

Direct Known Subclasses

ByteString

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new_from_java(blob) ⇒ Object



91
92
93
# File 'lib/appengine-apis/datastore_types.rb', line 91

def self.new_from_java(blob)
  self.new(self.from_java_bytes(blob.getBytes))
end

Instance Method Details

#to_javaObject



87
88
89
# File 'lib/appengine-apis/datastore_types.rb', line 87

def to_java
  JavaDatastore::Blob.new(self.to_java_bytes)
end