Module: Netzke::Core::Services::ClassMethods

Defined in:
lib/netzke/core/services.rb

Instance Method Summary collapse

Instance Method Details

#endpoint(name, options = {}, &block) ⇒ Object



92
93
94
95
# File 'lib/netzke/core/services.rb', line 92

def endpoint(name, options = {}, &block)
  register_endpoint(name)
  define_method("#{name}_endpoint", &block)
end