This is the parent class of all service model implementations.
Methods
Attributes
| [R] | service_point | This is the service point that this model protects. |
Public Class methods
Create a new service model around the given service point.
[ show source ]
# File lib/copland/models/abstract.rb, line 55
55: def initialize( service_point )
56: @service_point = service_point
57: end
A convenience method for allowing subclasses to register themselves with the ClassFactory.
[ show source ]
# File lib/copland/models/abstract.rb, line 66
66: def self.register_as( name )
67: class_eval "def name\n\#{name.inspect}\nend\n"
68: Copland::ClassFactory.instance.register( POOL_NAME, name, self )
69: end
Public Instance methods
Raises a NotImplementedException. Subclasses must override this method.
[ show source ]
# File lib/copland/models/abstract.rb, line 60
60: def instance( &block )
61: raise NotImplementedException
62: end