Class: AppEngine::Datastore::Email

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

Overview

An RFC2822 email address. Makes no attempt at validation.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new_from_java(email) ⇒ Object



126
127
128
# File 'lib/appengine-apis/datastore_types.rb', line 126

def self.new_from_java(email)
  self.new(email.getEmail)
end

Instance Method Details

#to_javaObject



122
123
124
# File 'lib/appengine-apis/datastore_types.rb', line 122

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