Module: OpenapiFirst::Test::Methods::DefaultApiMethod
- Defined in:
- lib/openapi_first/test/methods.rb
Overview
Default methods
Instance Method Summary collapse
-
#openapi_first_default_api ⇒ Object
This is the default api that is used by assert_api_conform :default is the default name that is used if you don’t pass an
api:option toOpenapiFirst::Test.registerThis is overwritten if you pass anapi:option to ‘include OpenapiFirst::Test::Methods`.
Instance Method Details
#openapi_first_default_api ⇒ Object
This is the default api that is used by assert_api_conform :default is the default name that is used if you don’t pass an api: option to OpenapiFirst::Test.register This is overwritten if you pass an api: option to ‘include OpenapiFirst::Test::Methods`
46 47 48 49 50 51 52 53 |
# File 'lib/openapi_first/test/methods.rb', line 46 def openapi_first_default_api klass = self.class if klass.respond_to?(:metadata) && klass.[:api] klass.[:api] else :default end end |