Module: NCore::SingletonBase::ClassMethods
- Defined in:
- lib/ncore/singleton_base.rb
Instance Method Summary collapse
Instance Method Details
#crud(*types) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/ncore/singleton_base.rb', line 20 def crud(*types) include Build if types.include? :build include Create if types.include? :create include DeleteSingle if types.include? :delete include FindSingle if types.include? :find include Update if types.include? :update end |
#resource_path ⇒ Object
28 29 30 |
# File 'lib/ncore/singleton_base.rb', line 28 def resource_path class_name.underscore end |