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
37 38 39 |
# File 'lib/mini_apivore.rb', line 37 def init_swagger( swagger_path, schema= '' ) SWAGGER_CHECKERS[self] ||= MiniApivore::SwaggerChecker.instance_for(swagger_path, schema) end |
#runnable_methods ⇒ Object
41 42 43 |
# File 'lib/mini_apivore.rb', line 41 def runnable_methods super | ['final_test'] end |
#swagger_checker ⇒ Object
49 50 51 |
# File 'lib/mini_apivore.rb', line 49 def swagger_checker; SWAGGER_CHECKERS[self] end |
#test(name, &block) ⇒ Object
45 46 47 |
# File 'lib/mini_apivore.rb', line 45 def test(name, &block ) super( name, &block ).tap{ |sym| MiniApivore.runnable_list << "#{to_s}::#{sym}" } end |