Class: AppEngine::Datastore::Link

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

Overview

A fully qualified URL. Usually http: scheme, but may also be file:, ftp:, news:, among others.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new_from_java(link) ⇒ Object



115
116
117
# File 'lib/appengine-apis/datastore_types.rb', line 115

def self.new_from_java(link)
  self.new(link.getValue)
end

Instance Method Details

#to_javaObject



111
112
113
# File 'lib/appengine-apis/datastore_types.rb', line 111

def to_java
  JavaDatastore::Link.new(java.lang.String.new(self))
end