Class: OpenAPIParser::SchemaLoader::Base
- Inherits:
-
Object
- Object
- OpenAPIParser::SchemaLoader::Base
- Defined in:
- lib/openapi_parser/concerns/schema_loader/base.rb
Overview
loader base class
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(variable_name, options) ⇒ Base
constructor
A new instance of Base.
- #load_data(_target_object, _raw_schema) ⇒ Array<OpenAPIParser::Schemas::Base>?
Constructor Details
#initialize(variable_name, options) ⇒ Base
Returns a new instance of Base.
5 6 7 8 |
# File 'lib/openapi_parser/concerns/schema_loader/base.rb', line 5 def initialize(variable_name, ) @variable_name = variable_name @schema_key = [:schema_key] || variable_name end |
Instance Method Details
#load_data(_target_object, _raw_schema) ⇒ Array<OpenAPIParser::Schemas::Base>?
13 14 15 |
# File 'lib/openapi_parser/concerns/schema_loader/base.rb', line 13 def load_data(_target_object, _raw_schema) raise 'need implement' end |