Module: MiniApivore::ClassMethods
- Defined in:
- lib/mini_apivore.rb
Overview
—- class methods ———–
Instance Method Summary collapse
- #init_swagger(swagger_path, schema = '') ⇒ Object
- #runnable_methods ⇒ Object
- #swagger_checker ⇒ Object
- #test(name, &block) ⇒ Object
Instance Method Details
#init_swagger(swagger_path, schema = '') ⇒ Object
38 39 40 |
# File 'lib/mini_apivore.rb', line 38 def init_swagger( swagger_path, schema= '' ) SWAGGER_CHECKERS[self] ||= MiniApivore::SwaggerChecker.instance_for(swagger_path, schema) end |
#runnable_methods ⇒ Object
42 43 44 |
# File 'lib/mini_apivore.rb', line 42 def runnable_methods super | ['final_test'] end |
#swagger_checker ⇒ Object
50 51 52 |
# File 'lib/mini_apivore.rb', line 50 def swagger_checker; SWAGGER_CHECKERS[self] end |
#test(name, &block) ⇒ Object
46 47 48 |
# File 'lib/mini_apivore.rb', line 46 def test(name, &block ) super( name, &block ).tap{ |sym| MiniApivore.runnable_list << "#{to_s}::#{sym}" } end |