Class: AppEngine::Datastore::PostalAddress

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

Overview

A human-readable mailing address. Mailing address formats vary widely so no validation is performed.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new_from_java(address) ⇒ Object



168
169
170
# File 'lib/appengine-apis/datastore_types.rb', line 168

def self.new_from_java(address)
  self.new(address.getAddress)
end

Instance Method Details

#to_javaObject



164
165
166
# File 'lib/appengine-apis/datastore_types.rb', line 164

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