Class: OpenAPIParser::Schemas::Base
- Inherits:
-
Object
- Object
- OpenAPIParser::Schemas::Base
- Includes:
- Expandable, Findable, Parser
- Defined in:
- lib/openapi_parser/schemas/base.rb,
lib/openapi_parser/schemas/classes.rb
Direct Known Subclasses
Components, Discriminator, Header, Info, MediaType, OpenAPI, Operation, Parameter, PathItem, Paths, Reference, RequestBody, Response, Responses, Schema
Instance Attribute Summary collapse
-
#object_reference ⇒ Object
readonly
Returns the value of attribute object_reference.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#raw_schema ⇒ Object
readonly
Returns the value of attribute raw_schema.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#after_init ⇒ Object
override.
-
#initialize(object_reference, parent, root, raw_schema) ⇒ Base
constructor
A new instance of Base.
- #inspect ⇒ Object
Methods included from Expandable
Methods included from Findable
#find_object, #purge_object_cache
Methods included from Parser
#_openapi_all_child_objects, #_update_child_object, included, #load_data
Constructor Details
#initialize(object_reference, parent, root, raw_schema) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 15 16 17 18 |
# File 'lib/openapi_parser/schemas/base.rb', line 10 def initialize(object_reference, parent, root, raw_schema) @raw_schema = raw_schema @parent = parent @root = root @object_reference = object_reference load_data after_init end |
Instance Attribute Details
#object_reference ⇒ Object (readonly)
Returns the value of attribute object_reference.
7 8 9 |
# File 'lib/openapi_parser/schemas/base.rb', line 7 def object_reference @object_reference end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
7 8 9 |
# File 'lib/openapi_parser/schemas/base.rb', line 7 def parent @parent end |
#raw_schema ⇒ Object (readonly)
Returns the value of attribute raw_schema.
7 8 9 |
# File 'lib/openapi_parser/schemas/base.rb', line 7 def raw_schema @raw_schema end |