Class: AppEngine::Datastore::IMHandle
- Inherits:
-
Object
- Object
- AppEngine::Datastore::IMHandle
- Defined in:
- lib/appengine-apis/datastore_types.rb
Overview
An instant messaging handle. Includes both an address and its protocol. The protocol value is either a standard IM scheme (legal scheme values are :sip, :xmpp, :unknown or a URL identifying the IM network for the protocol (eg aim.com/).
Constant Summary collapse
- SCHEMES =
{ :sip => Scheme.sip, :xmpp => Scheme.xmpp, :unknown => Scheme.unknown }.freeze
Class Method Summary collapse
Class Method Details
.new(protocol, address) ⇒ Object
217 218 219 220 221 222 223 224 |
# File 'lib/appengine-apis/datastore_types.rb', line 217 def self.new(protocol, address) begin protocol = SCHEMES[protocol] || java.net.URL.new(protocol) rescue java.net.MalformedURLException => ex raise ArgumentError, ex. end super end |